Merge pull request #4407 from deltachat/adb/issue-4406

add "mark all as read" to account menu
This commit is contained in:
adb
2026-05-05 18:03:46 +02:00
committed by GitHub
3 changed files with 11 additions and 0 deletions
+1
View File
@@ -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
@@ -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);
}
}
}
@@ -2,6 +2,10 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:title="@string/mark_all_as_read"
android:id="@+id/menu_mark_all_as_read" />
<item
android:title="@string/menu_mute"
android:id="@+id/menu_mute_notifications" />