mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 16:33:27 +00:00
Two bugs caused WebRTC group calls to get stuck in "Connecting": 1. CallController.onLocalIceCandidate() used currentPeerPubKey() which returns only the first peer via firstOrNull(). ICE candidates were gift-wrapped to only one peer; the others never received them. Fixed by iterating over all currentPeerPubKeys(). 2. CallManager.acceptCall() set Connecting.peerPubKeys to groupMembers which includes the local user's own pubkey. This caused currentPeerPubKey() to potentially return self, sending ICE candidates to oneself instead of the caller. Fixed by filtering out signer.pubKey from the peer set. https://claude.ai/code/session_01J5fJx9YbSBx1BsBMctiAm8