You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Add handling for invite
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user