Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

unread_ops: Don't read messages when any overlay is open.

Aman Agrawal3d8181455b5f
diff --git a/static/js/unread_ops.js b/static/js/unread_ops.js
index 28575ac5148..a087f64073d 100644
--- a/static/js/unread_ops.js
+++ b/static/js/unread_ops.js
@@ -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;
}