mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 07:52:19 +00:00
Mark messages as read when using the End key
(imported from commit b2495cb27b1362d037e786db7f108540f2ce655b)
This commit is contained in:
@@ -419,6 +419,17 @@ function process_visible_unread_messages() {
|
||||
}
|
||||
}
|
||||
|
||||
function mark_read_between(msg_list, start_id, end_id) {
|
||||
var mark_as_read = [];
|
||||
$.each(message_range(msg_list, start_id, end_id),
|
||||
function (idx, msg) {
|
||||
if (message_unread(msg)) {
|
||||
mark_as_read.push(msg);
|
||||
}
|
||||
});
|
||||
process_read_messages(mark_as_read);
|
||||
}
|
||||
|
||||
function send_pointer_update() {
|
||||
if (!pointer_update_in_flight &&
|
||||
furthest_read > server_furthest_read) {
|
||||
|
||||
Reference in New Issue
Block a user