mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Stop marking messages as read after archiving.
This commit is contained in:
@@ -1670,32 +1670,17 @@ public class ConversationListFragment extends MainFragment implements ActionMode
|
||||
|
||||
@Override
|
||||
protected void executeAction(@Nullable Long parameter) {
|
||||
Context context = requireActivity();
|
||||
|
||||
pinnedThreadIds = threadTable.getPinnedThreadIds();
|
||||
threadTable.archiveConversation(threadId);
|
||||
|
||||
if (unreadCount > 0) {
|
||||
List<MarkedMessageInfo> messageIds = threadTable.setRead(threadId, false);
|
||||
AppDependencies.getMessageNotifier().updateNotification(context);
|
||||
MarkReadReceiver.process(messageIds);
|
||||
}
|
||||
|
||||
ConversationUtil.refreshRecipientShortcuts();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void reverseAction(@Nullable Long parameter) {
|
||||
Context context = requireActivity();
|
||||
|
||||
threadTable.unarchiveConversation(threadId);
|
||||
threadTable.restorePins(pinnedThreadIds);
|
||||
|
||||
if (unreadCount > 0) {
|
||||
threadTable.incrementUnread(threadId, unreadCount, unreadSelfMentionsCount);
|
||||
AppDependencies.getMessageNotifier().updateNotification(context);
|
||||
}
|
||||
|
||||
ConversationUtil.refreshRecipientShortcuts();
|
||||
}
|
||||
}.executeOnExecutor(SignalExecutors.BOUNDED, threadId);
|
||||
|
||||
Reference in New Issue
Block a user