mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
Revert to old mark as unread on view behavior.
Effectively reverts 185e865 and b67e52d. (imported from commit e9b95f1fd9e2ab7926f15910044e9e9879ea085f)
This commit is contained in:
@@ -30,6 +30,11 @@ exports.initialize = function () {
|
||||
$.each(notice_memory, function (index, notice_mem_entry) {
|
||||
notice_mem_entry.obj.cancel();
|
||||
});
|
||||
|
||||
// Update many places on the DOM to reflect unread
|
||||
// counts.
|
||||
process_visible_unread_messages();
|
||||
|
||||
}).blur(function () {
|
||||
window_has_focus = false;
|
||||
});
|
||||
@@ -270,11 +275,9 @@ function message_is_notifiable(message) {
|
||||
}
|
||||
|
||||
exports.received_messages = function (messages) {
|
||||
var vp = viewport.message_viewport_info();
|
||||
|
||||
$.each(messages, function (index, message) {
|
||||
if (!message_is_notifiable(message)) return;
|
||||
if (viewport.message_is_visible(vp, message)) return;
|
||||
if (!unread.message_unread(message)) return;
|
||||
|
||||
if (page_params.desktop_notifications_enabled &&
|
||||
browser_desktop_notifications_on()) {
|
||||
|
||||
Reference in New Issue
Block a user