mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Improve typing
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
072fdf1cb8
commit
367049bd08
1 changed files with 3 additions and 3 deletions
|
@ -104,11 +104,11 @@ export default class CallEventGrouper extends EventEmitter {
|
||||||
return ![...this.events].some((event) => event.sender?.userId === MatrixClientPeg.get().getUserId());
|
return ![...this.events].some((event) => event.sender?.userId === MatrixClientPeg.get().getUserId());
|
||||||
}
|
}
|
||||||
|
|
||||||
private get callId(): string {
|
private get callId(): string | undefined {
|
||||||
return [...this.events][0].getContent().call_id;
|
return [...this.events][0]?.getContent()?.call_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
private get roomId(): string {
|
private get roomId(): string | undefined {
|
||||||
return [...this.events][0]?.getRoomId();
|
return [...this.events][0]?.getRoomId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue