Files
simplex-chat/apps
Narasimha-sc 5a94b9f86d android, desktop, ios: correct the upsertChatItem scope-guard comment
The comment claimed addChatItem doesn't create the chat entry for a scoped ChatInfo
either. It does - with an empty chatItems list. State the actual reason the upsert
must not: it would seed the main list with the support item as preview, and since
ChatInfo.Group.id ignores the scope that entry shadows the real group.

Also note at the sent-item mirror why passing a scoped ChatInfo into the primary
context is safe (updateChatInfo strips the scope; chatItemBelongsToScope keeps the
item out of the primary's list).
2026-07-23 15:31:03 +00:00
..