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:
Aman Agrawal
2022-10-21 09:52:47 +00:00
committed by Tim Abbott
parent ae5be12540
commit 74a97ab398
3 changed files with 23 additions and 0 deletions

View File

@@ -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");
}