Skip to content

Commit

Permalink
fix: read receipts are not sent when the app is in background
Browse files Browse the repository at this point in the history
  • Loading branch information
ohassine committed Oct 8, 2024
1 parent 2d37412 commit fd7968b
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,12 @@ class NotificationReplyReceiver : BroadcastReceiver() { // requires zero argumen
{ updateNotification(context, conversationId, qualifiedUserId, replyText) }
)
}

launch {
conversations.updateConversationReadDateUseCase(
qualifiedConversationId,
Clock.System.now()
conversations.updateConversationReadDateUseCase.invoke(
conversationId = qualifiedConversationId,
time = Clock.System.now(),
shouldWaitUntilLive = false
)
}
}
Expand Down

0 comments on commit fd7968b

Please sign in to comment.