Skip to content

Commit

Permalink
fix event type
Browse files Browse the repository at this point in the history
Signed-off-by: Timo K <[email protected]>
  • Loading branch information
toger5 committed Feb 14, 2024
1 parent 76fabde commit c7f9665
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/matrixrtc/MatrixRTCSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { MatrixClient } from "../client";
import { EventType } from "../@types/event";
import { CallMembership, CallMembershipData } from "./CallMembership";
import { Focus } from "./focus";
import { MatrixError, MatrixEvent, RoomEvent } from "../matrix";
import { MatrixError, MatrixEvent, RoomStateEvent } from "../matrix";
import { randomString, secureRandomBase64Url } from "../randomstring";
import { EncryptionKeysEventContent } from "./types";
import { decodeBase64, encodeUnpaddedBase64 } from "../base64";
Expand Down Expand Up @@ -193,7 +193,7 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
) {
super();
this._callId = memberships[0]?.callId;
this.room.on(RoomEvent.MembershipsChanged, this.onMembershipUpdate);
this.room.on(RoomStateEvent.Members, this.onMembershipUpdate);
this.setExpiryTimer();
}

Expand All @@ -217,7 +217,7 @@ export class MatrixRTCSession extends TypedEventEmitter<MatrixRTCSessionEvent, M
clearTimeout(this.memberEventTimeout);
this.memberEventTimeout = undefined;
}
this.room.off(RoomEvent.MembershipsChanged, this.onMembershipUpdate);
this.room.off(RoomStateEvent.Members, this.onMembershipUpdate);
}

/**
Expand Down

0 comments on commit c7f9665

Please sign in to comment.