Repository navigation
fix(desktop): a direct call that cannot connect says so - #385
Merged
Merged
Conversation
A direct call whose peer connection reaches the failed state tells the person once, in their language, what happened, with the sentence that is true for that connection: one for a connection that never connected (the two devices could not set up a direct connection), another for one that connected and was then lost (end the call and start it again). Each sentence is shown at most once per call, only for the peer the call holds now in a call that is still up. A new call starts fresh. A space voice session and a call that is ending say nothing. The call's state, its teardown and the reconnection logic are unchanged: the peer is destroyed and the failure logged as before. Both sentences exist in all 11 locales beside the other direct-call strings. Refs #59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was missing
A direct (one to one) call is peer to peer. When its peer connection failed, the voice store only logged it and destroyed the peer. The call panel stayed as it was, with no sound and no explanation.
What the code does now
This is the message part of #59 only. A relay for direct calls is a separate decision and is not in this change.
Key files
apps/desktop/src/stores/voiceStore.ts(tellDMCallConnectionGivenUp,connectedDMPeers,onconnectionstatechangeincreatePeerInternal)apps/desktop/src/i18n/locales/*.json(e2e.callConnectFailed,e2e.callConnectionLost, 11 locales)apps/desktop/src/__tests__/stores/voiceStore.test.tsMigrations
None. The server is unchanged.
Tests
To check by hand