mirror of https://github.com/zulip/zulip.git
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:
parent
1d7d3fae61
commit
c9f49cefdd
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue