Conform more of the codebase to strictNullChecks (#10800)
This commit is contained in:
committed by
GitHub
parent
adb29b38a3
commit
456c66db5b
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user