mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
stream_topic_history: Fix wrong topic order when moving messages.
Fixes #27500 It is hard to reproduce the bug but this should fix any bugs involving topic order when moving messages since we are updating the data again from the server.
This commit is contained in:
@@ -124,6 +124,8 @@ import * as stream_list from "./stream_list";
|
||||
import * as stream_list_sort from "./stream_list_sort";
|
||||
import * as stream_popover from "./stream_popover";
|
||||
import * as stream_settings_ui from "./stream_settings_ui";
|
||||
import * as stream_topic_history from "./stream_topic_history";
|
||||
import * as stream_topic_history_util from "./stream_topic_history_util";
|
||||
import * as sub_store from "./sub_store";
|
||||
import * as timerender from "./timerender";
|
||||
import * as tippyjs from "./tippyjs";
|
||||
@@ -487,6 +489,15 @@ export function initialize_everything(state_data) {
|
||||
initialize_navbar();
|
||||
initialize_message_feed_errors();
|
||||
|
||||
// Needs to be set before we fetch any messages.
|
||||
stream_topic_history.set_update_topic_last_message_id((stream_id, topic_name) => {
|
||||
stream_topic_history_util.update_topic_last_message_id(
|
||||
stream_id,
|
||||
topic_name,
|
||||
stream_list.update_streams_sidebar,
|
||||
);
|
||||
});
|
||||
|
||||
realm_logo.initialize();
|
||||
message_lists.initialize();
|
||||
recent_view_ui.initialize({
|
||||
|
||||
Reference in New Issue
Block a user