mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
narrow_history: Save narrow state after we have scrolled to the msg.
Saving narrow state before we have scrolled to the message results in view scroll position being different from where the message is displayed.
This commit is contained in:
@@ -319,7 +319,6 @@ export function initialize_kitchen_sink_stuff() {
|
||||
const $row = event.msg_list.get_row(event.id);
|
||||
$(".selected_message").removeClass("selected_message");
|
||||
$row.addClass("selected_message");
|
||||
narrow_history.save_narrow_state();
|
||||
|
||||
if (event.then_scroll) {
|
||||
if ($row.length === 0) {
|
||||
@@ -355,6 +354,9 @@ export function initialize_kitchen_sink_stuff() {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// Save selected message and scroll position after we have scrolled to it.
|
||||
narrow_history.save_narrow_state();
|
||||
});
|
||||
|
||||
if (!realm.realm_allow_message_editing) {
|
||||
|
||||
Reference in New Issue
Block a user