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: Restore pointer state for combined feed view.

Aman Agrawal439091998dd6
diff --git a/web/src/hashchange.js b/web/src/hashchange.js
index 0dd4f48aa72..1177f1c7767 100644
--- a/web/src/hashchange.js
+++ b/web/src/hashchange.js
@@ -60,6 +60,8 @@ function show_all_message_view() {
narrow.activate([{operator: "in", operand: "home"}], {
trigger: "hashchange",
change_hash: false,
+ then_select_id: history.state?.narrow_pointer,
+ then_select_offset: history.state?.narrow_offset,
});
}