mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 00:18:12 +00:00
Mark messages as read when using the End key
(imported from commit b2495cb27b1362d037e786db7f108540f2ce655b)
This commit is contained in:
@@ -573,14 +573,7 @@ $(function () {
|
||||
// Make the block not empty to appease jslint
|
||||
var ignored = true;
|
||||
} else if (new_selected > scroll_start_message) {
|
||||
var mark_as_read = [];
|
||||
$.each(message_range(current_msg_list, scroll_start_message, new_selected),
|
||||
function (idx, msg) {
|
||||
if (message_unread(msg)) {
|
||||
mark_as_read.push(msg);
|
||||
}
|
||||
});
|
||||
process_read_messages(mark_as_read);
|
||||
mark_read_between(current_msg_list, scroll_start_message, new_selected);
|
||||
}
|
||||
scroll_start_message = undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user