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.

recent_conversations: Fix unread topics navigation behaviour.

Aman Agrawaldbc2b2a83963
diff --git a/web/src/recent_topics_ui.js b/web/src/recent_topics_ui.js
index bd3814cd871..34e2bf4fc4e 100644
--- a/web/src/recent_topics_ui.js
+++ b/web/src/recent_topics_ui.js
@@ -1263,7 +1263,11 @@ export function initialize() {
const topic = $elt.attr("data-topic-name");
unread_ops.mark_topic_as_read(stream_id, topic);
}
- change_focused_element($elt, "down_arrow");
+ // If `unread` filter is selected, the focused topic row gets removed
+ // and we automatically move one row down.
+ if (!filters.has("unread")) {
+ change_focused_element($elt, "down_arrow");
+ }
});
$("body").on("keydown", ".on_hover_topic_read", ui_util.convert_enter_to_click);