Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
message_list: Remove unused preserve_rendered_state attribute.
evykassirerc9f49cefdd29
diff --git a/web/src/message_lists.ts b/web/src/message_lists.tsindex 1da61bf42eb..f80dbd4ed23 100644--- a/web/src/message_lists.ts+++ b/web/src/message_lists.ts@@ -21,7 +21,6 @@ export type SelectIdOpts = {export type MessageList = {id: number;- preserve_rendered_state: boolean;view: MessageListView;is_combined_feed_view: boolean;selected_id: () => number;diff --git a/web/src/user_topics_ui.ts b/web/src/user_topics_ui.tsindex 61aebe75d24..7b7cf7990ed 100644--- a/web/src/user_topics_ui.ts+++ b/web/src/user_topics_ui.ts@@ -76,7 +76,7 @@ export function handle_topic_updates(user_topic_event: ServerUserTopic): void {setTimeout(() => {// Defer updates for any background-rendered messages lists until the visible one has been updated.for (const list of message_lists.all_rendered_message_lists()) {- if (list.preserve_rendered_state && message_lists.current !== list) {+ if (message_lists.current !== list) {list.update_muting_and_rerender();}}