Files
Narasimha-sc 226c9a7c8d android, desktop: fix slow bulk member removal (O(members * items))
Bulk removing group members rebuilt the entire open-chat item list once
per removed member (per-member upsertGroupMember + removeMemberItems, each
a full SnapshotStateList rebuild on the Main thread), giving O(members *
items) work that froze the UI for minutes on large groups.

Batch the model updates so chat items and the members list are scanned and
rebuilt once for all removed members: add batched
ChatsContext.removeMemberItems(List<GroupMember>) and upsertGroupMembers,
and call them once per context from removeMembers. Also fix the second
update block to target secondaryChatsContext instead of the primary one.
2026-07-02 12:40:36 +00:00
..
2026-07-02 07:46:12 +01:00