From 439091998dd6c5497993bb3914679fa8d131f0e8 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Sat, 27 Apr 2024 06:24:30 +0000 Subject: [PATCH] hashchange: Restore pointer state for combined feed view. Now, user can use browser back button to go their last selected message in combined feed view. --- web/src/hashchange.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/hashchange.js b/web/src/hashchange.js index 0dd4f48aa7..1177f1c776 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, }); }