-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
action_sheet: Add "Mark Topic As Read" button #1274
base: main
Are you sure you want to change the base?
Conversation
56a877f
to
af14f10
Compare
Hello, I want to know that should I commit the change of icon of "Mark all messages as read button" separately? |
Yeah, committing it separately sounds good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Took a quick look at the implementation and left a comment.
Thanks Alya for pointing. I have updated the correct icon and also updated the PR description with latest screenshots. |
af14f10
to
0907baf
Compare
7d8f4a4
to
e45f627
Compare
Adds button to mark all messages in a topic as read. The button: - Appears only when the topic has unread messages - Uses mark_topic_as_read API for server feature level < 155 - Uses messages/flags/narrow API for server feature level >= 155 - Shows error dialog if the request fails fixes: zulip#1225
e45f627
to
59fb9c2
Compare
Thanks for the review @PIG208, pushed the revision, PTAL. |
This PR adds a "Mark Topic as Read" button to the topic action sheet. The button appears only when there are unread messages in the topic.
Implementation details
/api/v1/mark_topic_as_read
/api/v1/messages/flags/narrow
Fixes #1225
Screen Recording
WhatsApp.Video.2025-02-01.at.1.02.03.PM.mp4
Additional
Icons.playlist_add_check
toIcons.mark_chat_read_outlined
See CZO Discussion