Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hughns committed Aug 9, 2024
1 parent 7a97b80 commit 2487ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/matrixrtc/MatrixRTCSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,6 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
*/
public onMembershipUpdate = (): void => {
const oldMemberships = this.memberships;
const oldFingerprints = this.lastMembershipFingerprints;
this.memberships = MatrixRTCSession.callMembershipsForRoom(this.room);

this._callId = this._callId ?? this.memberships[0]?.callId;
Expand All @@ -677,6 +676,7 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
const anyLeft = Array.from(oldMembershipIds).some((x) => !newMembershipIds.has(x));
const anyJoined = Array.from(newMembershipIds).some((x) => !oldMembershipIds.has(x));

const oldFingerprints = this.lastMembershipFingerprints;
// always store the fingerprints of these latest memberships
this.storeLastMembershipFingerprints();

Expand Down

0 comments on commit 2487ad6

Please sign in to comment.