-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix: 1:1 call - screen sharing no longer works after pressing the cancel button in Element-Desktop #27301
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a comment as it is non-obvious, as well as sign-off as per the checklist
Sign-off given on the changes (see CONTRIBUTING.md).
Signed-off-by: Stephan Raab [email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks for the contribution! It's not apparent to me how this fix works. Could you add a comment explaining why we need to always call the callback?
Co-authored-by: Robin <[email protected]>
However, the await function that was called by the matrix-js-sdk call.ts on line 1274
never returns. This only happens when a stream is selected. |
Okay, so in other words the getDisplayMedia promise will never resolve if we don't at least provide a dummy value? That's the kind of thing that should go in a comment in the code. |
That’s correct 👌🏻 |
@robintown Thanks :) |
Fixes element-hq/element-desktop#1367
Signed-off-by: Stephan Raab [email protected]
Checklist
public
/exported
symbols have accurate TSDoc documentation.