Conform more of the codebase to strictNullChecks (#10800)

This commit is contained in:
Michael Telatynski
2023-05-10 08:41:55 +01:00
committed by GitHub
parent adb29b38a3
commit 456c66db5b
46 changed files with 147 additions and 123 deletions

View File

@@ -652,9 +652,9 @@ export default class LegacyCallHandler extends EventEmitter {
}
private onCallStateChanged = (newState: CallState, oldState: CallState | null, call: MatrixCall): void => {
if (!this.matchesCallForThisRoom(call)) return;
const mappedRoomId = this.roomIdForCall(call);
if (!mappedRoomId || !this.matchesCallForThisRoom(call)) return;
this.setCallState(call, newState);
dis.dispatch({
action: "call_state",