-
-
Notifications
You must be signed in to change notification settings - Fork 829
Fix unwanted ringing of other devices even though the user is already connected to the call. #12742
Fix unwanted ringing of other devices even though the user is already connected to the call. #12742
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.
Please provide a description so someone is able to review it without context
8b09e7d
to
42b736b
Compare
This doesn't make for a very clear changelog entry, please update |
42b736b
to
e7efaf6
Compare
e7efaf6
to
bbf1f9b
Compare
// eslint-disable-next-line no-restricted-imports | ||
import { MatrixRTCSession } from "matrix-js-sdk/src/matrixrtc/MatrixRTCSession"; | ||
// eslint-disable-next-line no-restricted-imports | ||
import { CallMembership } from "matrix-js-sdk/src/matrixrtc/CallMembership"; |
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.
Ditto. Seems like matrixrtc
should have an index with all its public exports and we should allowlist that and consume that
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.
Thanks for making me finally take care of this...
matrix-org/matrix-js-sdk#4314
and
#12780
I dont think this fits into this PR and I would like to not block this PR on the js-sdk fix (its rather annoying to not have the ringing stop)
So my proposal would be to merge this without the lint rules and I keep the other PR's ontop of this so we can review and merge them independently?
This is done by checking if a user is already connected to the call on another device before playing the ring sound.
bbf1f9b
to
61590b2
Compare
If a call notify event is received but a user is already part of the call (with any other device) no device should ring.
The spec asks clients to never send notify events for already ongoing calls. But since it is possible (and currently happens when EX has not yet synced state when they join a call) it is best to check if the user is connected to the call before ringing.
This is how its expected to behave in the msc text:
matrix-org/matrix-spec-proposals#4075
The updating was already implemented but the check on notify event retrival was missing.
Checklist
public
/exported
symbols have accurate TSDoc documentation.