mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-10 14:21:43 +00:00
226c9a7c8d
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.