mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-12 00:59:05 +00:00
862d93c647
A message sent in a secondary scope (member support / "chat with admins") is added only to the active context (ComposeView passes its own chatsCtx), unlike received items which the NewChatItems handler delivers to both the primary and secondary contexts. After the index-correct revert of #5909's chatsContext.chats[i] write, a pending invitee's sent support message no longer appeared in the main chat list preview. Mirror the receive path: when adding a sent item on a secondary context, also update the primary context, so the main chat list preview updates at the correct index. Sent items are not RcvNew, so this adds no unread double-count.