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 store streams that are only used once #2157

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

SimonBrandner
Copy link
Contributor

@SimonBrandner SimonBrandner commented Feb 4, 2022

Type: defect
Notes element-web: Fix enabling video in voice calls working only once
Fixes element-hq/element-web#20932


Without this MediaHandler would always push the stream we used to get a new track while upgrading a call. We don't keep track of that stream in the call itself, so we never call stopUserMediaStream() for it but we stop() its tracks. When trying to upgrade a call again MediaHandler would try to re-use the stream but its tracks would be empty. Therefore we avoid pushing the stream so that it doesn't get re-used


Here's what your changelog entry will look like:

🐛 Bug Fixes

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
@dbkr dbkr merged commit 5d4e318 into matrix-org:develop Feb 8, 2022
@SimonBrandner SimonBrandner deleted the fix/dont-leak-streams branch February 8, 2022 10:14
su-ex added a commit to SchildiChat/matrix-js-sdk that referenced this pull request Feb 15, 2022
* Fix issue with rooms not getting marked as unread ([\matrix-org#2163](matrix-org#2163)). Fixes element-hq/element-web#20971.
* Don't store streams that are only used once ([\matrix-org#2157](matrix-org#2157)). Fixes element-hq/element-web#20932. Contributed by @SimonBrandner.
* Fix edge cases around RR calculations ([\matrix-org#2160](matrix-org#2160)). Fixes element-hq/element-web#20922.
* Account for encryption in `maySendMessage()` ([\matrix-org#2159](matrix-org#2159)). Contributed by @SimonBrandner.
* Send references to thread root to threads, even out of order ([\matrix-org#2156](matrix-org#2156)).
* Fix initial sync fail when event fetching unsuccessful ([\matrix-org#2150](matrix-org#2150)). Fixes element-hq/element-web#20862.
* Don't decrypt redacted messages ([\matrix-org#2143](matrix-org#2143)). Contributed by @SimonBrandner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trying to upgrade a call for the second time leads to an empty video track
2 participants