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.

message_scroll: Fix scroll-to-bottom not hiding in non-message views.

Sayam Samalea3c1e56e40d
diff --git a/web/src/message_scroll.ts b/web/src/message_scroll.ts
index 474c5e139f7..b6aa74d7f37 100644
--- a/web/src/message_scroll.ts
+++ b/web/src/message_scroll.ts
@@ -141,6 +141,10 @@ export function initialize(): void {
"scroll",
_.throttle(() => {
if (message_lists.current === undefined) {
+ // When in a non-message view, we don't need to process
+ // message scroll events. We just hide the scroll-to-bottom
+ // button instantly, if it is already visible.
+ hide_scroll_to_bottom();
return;
}