From 5f2b4590c007da2c7ecb08295b139b53d6eb421e Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Tue, 17 Sep 2024 16:14:23 +0200 Subject: [PATCH] marked chat replied to as being noticed when replying from within a notification, the corresponding chat should be marked as being noticed as well. otherwise, it looks wrong that one has replied to a chat, but still the chat is shown as being "unread". the 'reply' from a notification should leave the chat in the same state as 'dismiss' resp. 'mark read' - plus the added message. --- .../securesms/notifications/RemoteReplyReceiver.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/thoughtcrime/securesms/notifications/RemoteReplyReceiver.java b/src/main/java/org/thoughtcrime/securesms/notifications/RemoteReplyReceiver.java index 3233bd6d3..466ff1227 100644 --- a/src/main/java/org/thoughtcrime/securesms/notifications/RemoteReplyReceiver.java +++ b/src/main/java/org/thoughtcrime/securesms/notifications/RemoteReplyReceiver.java @@ -58,6 +58,7 @@ public class RemoteReplyReceiver extends BroadcastReceiver { if (responseText != null) { Util.runOnAnyBackgroundThread(() -> { DcContext dcContext = DcHelper.getAccounts(context).getAccount(accountId); + dcContext.marknoticedChat(chatId); if (dcContext.getChat(chatId).isContactRequest()) { dcContext.acceptChat(chatId); }