You've already forked matrix-js-sdk
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:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user