message_list: Remove unused preserve_rendered_state attribute.

Aman said  we should be running this even if it wasn’t running before.
https://github.com/zulip/zulip/pull/31591#pullrequestreview-2300886181
This commit is contained in:
evykassirer 2024-09-11 22:16:12 -07:00 committed by Tim Abbott
parent 1d7d3fae61
commit c9f49cefdd
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

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