Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
unread_ops: Harden against bugs involving recent topics.
Tim Abbott4ac4573c5255
diff --git a/static/js/unread_ops.js b/static/js/unread_ops.jsindex c54aaacd3ea..f2551fab3e9 100644--- a/static/js/unread_ops.js+++ b/static/js/unread_ops.js@@ -8,6 +8,7 @@ import * as message_viewport from "./message_viewport";import * as notifications from "./notifications";import * as people from "./people";import * as recent_topics_ui from "./recent_topics_ui";+import * as recent_topics_util from "./recent_topics_util";import * as reload from "./reload";import * as unread from "./unread";import * as unread_ui from "./unread_ui";@@ -154,6 +155,11 @@ export function notify_server_message_read(message, options) {}export function process_scrolled_to_bottom() {+ if (recent_topics_util.is_visible()) {+ // First, verify the current message list is visible.+ return;+ }+if (message_lists.current.can_mark_messages_read()) {mark_current_list_as_read();return;