Skip to content

Commit

Permalink
Merge branch 'main' into bugfix/notification-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
FelberMartin authored Oct 23, 2024
2 parents 3da1504 + 8e974f2 commit fb4f9d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import de.tum.informatics.www1.artemis.native_app.feature.push.communication_not
CommunicationMessageEntity::class
],
exportSchema = true,
version = 9
version = 10,
)
@TypeConverters(RoomTypeConverters::class)
abstract class AppDatabase : RoomDatabase() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ internal class MetisStorageServiceImpl(
)

insertOrUpdateAnswerPost(
isNewPost = queryClientPostIdAnswer != null,
isNewPost = queryClientPostIdAnswer == null,
answerPostClientSidePostId = queryClientPostIdAnswer ?: UUID.randomUUID()
.toString(),
answerPost = ap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.db.entiti
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.db.entities.PostReactionEntity
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.db.entities.StandalonePostTagEntity
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.db.entities.StandalonePostingEntity
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.db.pojo.AnswerPostPojo
import de.tum.informatics.www1.artemis.native_app.feature.metis.shared.db.pojo.PostPojo
import kotlinx.coroutines.flow.Flow
import kotlinx.datetime.Instant
Expand All @@ -34,7 +33,8 @@ interface MetisDao {
suspend fun clearAll(serverId: String)

/**
* Query the client side post if for the given metis context. Returns null if the given post is not yet stored.
* Query the client side post id for the given server side post id.
* Returns null if the given post is not yet stored.
* Note: Standalone posts and answer posts may have the same ids.
*/
@Query(
Expand Down

0 comments on commit fb4f9d1

Please sign in to comment.