From b161f02a3f0e0e244ab335dadaf14a9554e71047 Mon Sep 17 00:00:00 2001 From: Ryan ZHAO Date: Fri, 11 Sep 2020 11:13:03 +1000 Subject: [PATCH] fix group chat not being marked as read issue --- .../securesms/notifications/DefaultMessageNotifier.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/thoughtcrime/securesms/notifications/DefaultMessageNotifier.java b/src/org/thoughtcrime/securesms/notifications/DefaultMessageNotifier.java index 974667cb6f..f9ae25c19d 100644 --- a/src/org/thoughtcrime/securesms/notifications/DefaultMessageNotifier.java +++ b/src/org/thoughtcrime/securesms/notifications/DefaultMessageNotifier.java @@ -222,9 +222,9 @@ public class DefaultMessageNotifier implements MessageNotifier { Recipient recipients = DatabaseFactory.getThreadDatabase(context) .getRecipientForThreadId(threadId); - if (isVisible && recipients != null && SessionMetaProtocol.shouldSendReadReceipt(recipients.getAddress())) { + if (isVisible && recipients != null) { List messageIds = threads.setRead(threadId, false); - MarkReadReceiver.process(context, messageIds); + if (SessionMetaProtocol.shouldSendReadReceipt(recipients.getAddress())) { MarkReadReceiver.process(context, messageIds); } } if (!TextSecurePreferences.isNotificationsEnabled(context) ||