Improve typing

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-09-02 17:52:00 +02:00
parent 072fdf1cb8
commit 367049bd08
No known key found for this signature in database
GPG Key ID: 55C211A1226CB17D
1 changed files with 3 additions and 3 deletions

View File

@ -104,11 +104,11 @@ export default class CallEventGrouper extends EventEmitter {
return ![...this.events].some((event) => event.sender?.userId === MatrixClientPeg.get().getUserId());
}
private get callId(): string {
return [...this.events][0].getContent().call_id;
private get callId(): string | undefined {
return [...this.events][0]?.getContent()?.call_id;
}
private get roomId(): string {
private get roomId(): string | undefined {
return [...this.events][0]?.getRoomId();
}