Support hangup reasons
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -82,6 +82,10 @@ export default class CallEventGrouper extends EventEmitter {
|
||||
return this.state;
|
||||
}
|
||||
|
||||
public getHangupReason(): string | null {
|
||||
return this.events.find((event) => event.getType() === EventType.CallHangup)?.getContent()?.reason;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if there are only events from the other side - we missed the call
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user