1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Only process MatrixRTC sessions associated with calls for callMembershipsForRoom (#4960)

* Only process MatrixRTC sessions associated with calls

* tests: Only process MatrixRTC sessions associated with calls

* linting
This commit is contained in:
fkwp
2025-08-14 14:44:41 +02:00
committed by GitHub
parent ef080c25f9
commit 6d42ed338e
2 changed files with 25 additions and 0 deletions

View File

@@ -290,6 +290,12 @@ export class MatrixRTCSession extends TypedEventEmitter<
try {
const membership = new CallMembership(memberEvent, membershipData);
if (membership.application !== "m.call") {
// Only process MatrixRTC sessions associated with calls
logger.info("Skipping non-call MatrixRTC session");
continue;
}
if (membership.callId !== "" || membership.scope !== "m.room") {
// for now, just ignore anything that isn't a room scope call
logger.info(`Ignoring user-scoped call`);