mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-02 20:33:54 +00:00
Connecting to a prepared group whose host or relay member already had a connection created a second one for the same member - UNIQUE constraint failed: connections.group_member_id reachable by connecting again from a second view of the same group. joinContact advances the connection past ConnPrepared only after the agent call returns, so a join that failed is resumed by the ConnPrepared branch above and reaching this one means the join already succeeded; there is no case where connecting again is what the caller wants. Replaces a connect' call the code already questioned. The two tests reach this error only because owner members are now re-used, so they cover both halves: without either change they fail on a constraint instead.