Skip to content

Commit 994b701

Browse files
authored
Merge pull request #2939 from element-hq/feature/bma/fixWrongApiUsage
Fix small issue introduced in #2924.
2 parents 62a8e76 + 8c3bb04 commit 994b701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/push/impl/src/main/kotlin/io/element/android/libraries/push/impl/notifications/NotificationBroadcastReceiver.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ class NotificationBroadcastReceiver : BroadcastReceiver() {
9595

9696
private fun handleMarkAsRead(sessionId: SessionId, roomId: RoomId) = appCoroutineScope.launch {
9797
val client = matrixClientProvider.getOrRestore(sessionId).getOrNull() ?: return@launch
98-
val isRenderReadReceiptsEnabled = sessionPreferencesStore.get(sessionId, this).isRenderReadReceiptsEnabled().first()
99-
val receiptType = if (isRenderReadReceiptsEnabled) {
98+
val isSendPublicReadReceiptsEnabled = sessionPreferencesStore.get(sessionId, this).isSendPublicReadReceiptsEnabled().first()
99+
val receiptType = if (isSendPublicReadReceiptsEnabled) {
100100
ReceiptType.READ
101101
} else {
102102
ReceiptType.READ_PRIVATE

0 commit comments

Comments
 (0)