Support for getting reject info

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-07-25 10:28:27 +02:00
parent 4784ddc175
commit f63b6fc0a9
No known key found for this signature in database
GPG Key ID: 55C211A1226CB17D
1 changed files with 8 additions and 0 deletions

View File

@ -74,6 +74,14 @@ export default class CallEventGrouper extends EventEmitter {
return this.hangup?.getContent()?.reason;
}
public get rejectParty(): string {
return this.reject?.getSender();
}
public get gotRejected(): boolean {
return Boolean(this.reject);
}
/**
* Returns true if there are only events from the other side - we missed the call
*/