Add handling for invite
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
79ec655e66
commit
5b3967a486
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue