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.

hashchange: Show recent topics if overlay hash in initial URl.

Aman Agrawal7fc28eaa1600
diff --git a/static/js/hashchange.js b/static/js/hashchange.js
index 11c65af49ad..0978a79cc5d 100644
--- a/static/js/hashchange.js
+++ b/static/js/hashchange.js
@@ -155,6 +155,11 @@ function do_hashchange_normal(from_reload) {
}
function do_hashchange_overlay(old_hash) {
+ if (old_hash === undefined) {
+ // User directly requested to open an overlay.
+ // We need to show recent topics in the background.
+ recent_topics.show();
+ }
const base = hash_util.get_hash_category(window.location.hash);
const old_base = hash_util.get_hash_category(old_hash);
const section = hash_util.get_hash_section(window.location.hash);