mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Fix small issue introduced in #2924.
This commit is contained in:
+2
-2
@@ -95,8 +95,8 @@ class NotificationBroadcastReceiver : BroadcastReceiver() {
|
|||||||
|
|
||||||
private fun handleMarkAsRead(sessionId: SessionId, roomId: RoomId) = appCoroutineScope.launch {
|
private fun handleMarkAsRead(sessionId: SessionId, roomId: RoomId) = appCoroutineScope.launch {
|
||||||
val client = matrixClientProvider.getOrRestore(sessionId).getOrNull() ?: return@launch
|
val client = matrixClientProvider.getOrRestore(sessionId).getOrNull() ?: return@launch
|
||||||
val isRenderReadReceiptsEnabled = sessionPreferencesStore.get(sessionId, this).isRenderReadReceiptsEnabled().first()
|
val isSendPublicReadReceiptsEnabled = sessionPreferencesStore.get(sessionId, this).isSendPublicReadReceiptsEnabled().first()
|
||||||
val receiptType = if (isRenderReadReceiptsEnabled) {
|
val receiptType = if (isSendPublicReadReceiptsEnabled) {
|
||||||
ReceiptType.READ
|
ReceiptType.READ
|
||||||
} else {
|
} else {
|
||||||
ReceiptType.READ_PRIVATE
|
ReceiptType.READ_PRIVATE
|
||||||
|
|||||||
Reference in New Issue
Block a user