Add handling for invite

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-06-01 11:01:10 +02:00
parent 79ec655e66
commit 5b3967a486
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ export default class CallEventGrouper extends EventEmitter {
if (lastEventType === EventType.CallHangup) this.state = CallState.Ended; if (lastEventType === EventType.CallHangup) this.state = CallState.Ended;
else if (lastEventType === EventType.CallReject) this.state = CallState.Ended; else if (lastEventType === EventType.CallReject) this.state = CallState.Ended;
else if (lastEventType === EventType.CallInvite) this.state = CallState.Connecting;
} }
this.emit(CallEventGrouperEvent.StateChanged, this.state); this.emit(CallEventGrouperEvent.StateChanged, this.state);
} }