mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-03 00:23:56 +00:00
joinConnSrv raises CMD PROHIBITED too, on the same path, so matching the constructor alone reported a malformed connection as "contact request already accepted". Only SEInvitationNotFound carries that meaning, and storeError maps nothing else to CMD PROHIBITED, so match its context. catchError replaces catchAllErrors: withAgent surfaces agent errors as ChatError, and catchAllErrors would additionally convert exceptions this code did not catch before.