Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
recent_view_ui: Do single update instead of doing multiple rerenders.
Aman Agrawalb99ff8f34cba
diff --git a/web/src/recent_view_ui.ts b/web/src/recent_view_ui.tsindex 80b485bce6d..41522ade64c 100644--- a/web/src/recent_view_ui.ts+++ b/web/src/recent_view_ui.ts@@ -800,12 +800,13 @@ export function topic_in_search_results(export function update_topics_of_deleted_message_ids(message_ids: number[]): void {const topics_to_rerender = message_util.get_topics_for_message_ids(message_ids);-+ const msgs_to_process = [];for (const [stream_id, topic] of topics_to_rerender.values()) {recent_view_data.conversations.delete(recent_view_util.get_topic_key(stream_id, topic));const msgs = message_util.get_messages_in_topic(stream_id, topic);- process_messages(msgs);+ msgs_to_process.push(...msgs);}+ process_messages(msgs_to_process);}export function filters_should_hide_row(topic_data: ConversationData): boolean {