mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 23:27:04 +05:30
Revert "refactor: make PostComments non-nullable"
This reverts commit 39e3d783cd
.
This commit is contained in:
parent
a0276c4873
commit
1dfea689c6
4 changed files with 8 additions and 13 deletions
|
@ -22,10 +22,7 @@ constructor(
|
|||
) {
|
||||
|
||||
suspend fun getSeenComments(postId: String) =
|
||||
withContext(dbDispatcher) {
|
||||
postCommentsQueries.getCommentIds(postId).executeAsOneOrNull()
|
||||
?: PostComments(postId = postId, commentIds = emptyList())
|
||||
}
|
||||
withContext(dbDispatcher) { postCommentsQueries.getCommentIds(postId).executeAsOneOrNull() }
|
||||
|
||||
suspend fun markSeenComments(postId: String, comments: List<Comment>) {
|
||||
withContext(dbDispatcher) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue