Skip to content

Commit

Permalink
Merge pull request #2939 from element-hq/feature/bma/fixWrongApiUsage
Browse files Browse the repository at this point in the history
Fix small issue introduced in #2924.
  • Loading branch information
bmarty committed May 29, 2024
2 parents 62a8e76 + 8c3bb04 commit 994b701
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ class NotificationBroadcastReceiver : BroadcastReceiver() {

private fun handleMarkAsRead(sessionId: SessionId, roomId: RoomId) = appCoroutineScope.launch {
val client = matrixClientProvider.getOrRestore(sessionId).getOrNull() ?: return@launch
val isRenderReadReceiptsEnabled = sessionPreferencesStore.get(sessionId, this).isRenderReadReceiptsEnabled().first()
val receiptType = if (isRenderReadReceiptsEnabled) {
val isSendPublicReadReceiptsEnabled = sessionPreferencesStore.get(sessionId, this).isSendPublicReadReceiptsEnabled().first()
val receiptType = if (isSendPublicReadReceiptsEnabled) {
ReceiptType.READ
} else {
ReceiptType.READ_PRIVATE
Expand Down

0 comments on commit 994b701

Please sign in to comment.