You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-10 05:42:29 +03:00
Conform more of the codebase to strictNullChecks (#10666)
* Conform more of the codebase to `strictNullChecks` * Iterate * Iterate * Iterate * Iterate
This commit is contained in:
committed by
GitHub
parent
8867f1801e
commit
93b4ee654b
@@ -123,8 +123,8 @@ export default class LegacyCallEventGrouper extends EventEmitter {
|
||||
}
|
||||
|
||||
public get duration(): number | null {
|
||||
if (!this.hangup || !this.selectAnswer) return null;
|
||||
return this.hangup.getDate().getTime() - this.selectAnswer.getDate().getTime();
|
||||
if (!this.hangup?.getDate() || !this.selectAnswer?.getDate()) return null;
|
||||
return this.hangup.getDate()!.getTime() - this.selectAnswer.getDate()!.getTime();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user