mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
unread_ops: Don't read messages when any overlay is open.
Messages are automatically marked read when all the messages in the current narrow are visible. While this is handy, this is should not happen when any of the overlays are open.
This commit is contained in:
@@ -83,7 +83,7 @@ exports.notify_server_message_read = function (message, options) {
|
||||
// If we ever materially change the algorithm for this function, we
|
||||
// may need to update notifications.received_messages as well.
|
||||
exports.process_visible = function () {
|
||||
if (!notifications.window_has_focus()) {
|
||||
if (overlays.is_active() || !notifications.window_has_focus()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user