mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 05:58:25 +00:00
unread_ops: Add function to mark PM threads as read.
This will be used recent topics to mark PM rows as read.
This commit is contained in:
@@ -66,6 +66,10 @@ export const send_read = (function () {
|
||||
return add;
|
||||
})();
|
||||
|
||||
export function mark_as_read(message_ids) {
|
||||
send_flag_update_for_messages(message_ids, "read", "add");
|
||||
}
|
||||
|
||||
export function mark_as_unread(message_ids) {
|
||||
send_flag_update_for_messages(message_ids, "read", "remove");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user