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.
This commit is contained in:
Aman Agrawal 2024-04-27 06:24:30 +00:00 committed by Tim Abbott
parent 24f47e8993
commit 439091998d
1 changed files with 2 additions and 0 deletions

View File

@ -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,
});
}