Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't hang up calls that haven't started yet #2898

Merged
merged 3 commits into from
Nov 18, 2022

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Nov 18, 2022

Checklist

  • Tests written for new code (and old code if feasible)
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

Here's what your changelog entry will look like:

🐛 Bug Fixes

  • Don't hang up calls that haven't started yet (#2898).

Copy link
Member

@robintown robintown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be interested to know how it's possible for disposeCall to get called before the call starts, just to make sure that this is the right place to fix this

@dbkr
Copy link
Member Author

dbkr commented Nov 18, 2022

Sondarcloud seems to want me to refactor onCallFeedsChanged which hasn't changed in this PR...

@dbkr
Copy link
Member Author

dbkr commented Nov 18, 2022

I strongly suspect it's if the call gets replaced before it's had a chance to send the invite

@t3chguy
Copy link
Member

t3chguy commented Nov 18, 2022

Sondarcloud seems to want me to refactor onCallFeedsChanged which hasn't changed in this PR...

Likely your base branch is out of date and thus re-introduces the issue

@robintown
Copy link
Member

@dbkr Then would

if (this.state === CallState.WaitLocalMedia) return;
perhaps be a more appropriate place to put this? Otherwise the replaced call would never clean up its holds on the streams, I think

@dbkr
Copy link
Member Author

dbkr commented Nov 18, 2022

Very good point - in fact that check should have included both the states in which we wouldn't have sent an invite anyway.

@dbkr dbkr merged commit cb410f4 into develop Nov 18, 2022
@dbkr dbkr deleted the dbkr/dont_hang_up_calls_that_didnt_start branch November 18, 2022 17:33
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this pull request Dec 6, 2022
* Enable users to join group calls from multiple devices ([\matrix-org#2902](matrix-org#2902)).
* Deprecate a function containing a typo ([\matrix-org#2904](matrix-org#2904)).
* sliding sync: add receipts extension ([\matrix-org#2912](matrix-org#2912)).
* Define a spec support policy for the js-sdk ([\matrix-org#2882](matrix-org#2882)).
* Further improvements to e2ee logging ([\matrix-org#2900](matrix-org#2900)).
* sliding sync: add support for typing extension ([\matrix-org#2893](matrix-org#2893)).
* Improve logging on Olm session errors ([\matrix-org#2885](matrix-org#2885)).
* Improve logging of e2ee messages ([\matrix-org#2884](matrix-org#2884)).
* Fix 3pid invite acceptance not working due to mxid being sent in body ([\matrix-org#2907](matrix-org#2907)). Fixes element-hq/element-web#23823.
* Don't hang up calls that haven't started yet ([\matrix-org#2898](matrix-org#2898)).
* Read receipt accumulation for threads ([\matrix-org#2881](matrix-org#2881)).
* Make GroupCall work better with widgets ([\matrix-org#2935](matrix-org#2935)).
* Fix highlight notifications increasing when total notification is zero ([\matrix-org#2937](matrix-org#2937)). Fixes element-hq/element-web#23885.
* Fix synthesizeReceipt ([\matrix-org#2916](matrix-org#2916)). Fixes element-hq/element-web#23827 element-hq/element-web#23754 and element-hq/element-web#23847.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants