From e85ae5247ae72a6ad8afa39e45a24f4c42a7dea3 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Tue, 5 May 2026 15:40:06 +0200 Subject: [PATCH 1/2] add "mark all as read" to account menu --- .../securesms/accounts/AccountSelectionListFragment.java | 6 ++++++ src/main/res/menu/account_item_context.xml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/src/main/java/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java b/src/main/java/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java index 8098ef0ee..05893f499 100644 --- a/src/main/java/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java +++ b/src/main/java/org/thoughtcrime/securesms/accounts/AccountSelectionListFragment.java @@ -157,6 +157,12 @@ public class AccountSelectionListFragment extends DialogFragment onSetTag(accountId); } else if (itemId == R.id.menu_move_to_top) { onMoveToTop(accountId); + } else if (itemId == R.id.menu_mark_all_as_read) { + try { + DcHelper.getRpc(requireActivity()).marknoticedAllChats(accountId); + } catch (RpcException e) { + Log.e(TAG, "Error calling rpc.marknoticedAllChats()", e); + } } } diff --git a/src/main/res/menu/account_item_context.xml b/src/main/res/menu/account_item_context.xml index 1fc476d11..165517152 100644 --- a/src/main/res/menu/account_item_context.xml +++ b/src/main/res/menu/account_item_context.xml @@ -2,6 +2,10 @@ + + From 82262cb1664944a52b5045a1200df612c58ee07d Mon Sep 17 00:00:00 2001 From: adbenitez Date: Tue, 5 May 2026 15:41:55 +0200 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 00b7fbfce..52bb99220 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ * Allow to share location for 24 hours * Allow mini-apps to play audio without user interaction * Mark chats as unread (long tap a chat and select the corresponding option from the three-dot-menu) +* Add "Mark all as read" option to profile menu in the profile switcher * Fix process of upgrading from a very old version of the app * Show more recent added stickers at the top of the sticker picker * Allow to open links in messages via actions in TalkBack menu