mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Emit after sending signalling message
This commit is contained in:
parent
072004a9c2
commit
7eae171ac9
@ -284,11 +284,12 @@ export class PeerCall implements IDisposable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _hangup(errorCode: CallErrorCode, log: ILogItem): Promise<void> {
|
private async _hangup(errorCode: CallErrorCode, log: ILogItem): Promise<void> {
|
||||||
if (this._state === CallState.Ended) {
|
if (this._state === CallState.Ended || this._state === CallState.Ending) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.terminate(CallParty.Local, errorCode, log);
|
this.setState(CallState.Ending, log);
|
||||||
await this.sendHangupWithCallId(this.callId, errorCode, log);
|
await this.sendHangupWithCallId(this.callId, errorCode, log);
|
||||||
|
this.terminate(CallParty.Local, errorCode, log);
|
||||||
}
|
}
|
||||||
|
|
||||||
getMessageAction<B extends MCallBase>(message: SignallingMessage<B>): IncomingMessageAction {
|
getMessageAction<B extends MCallBase>(message: SignallingMessage<B>): IncomingMessageAction {
|
||||||
@ -1130,6 +1131,7 @@ export enum CallState {
|
|||||||
Connecting = 'connecting',
|
Connecting = 'connecting',
|
||||||
Connected = 'connected',
|
Connected = 'connected',
|
||||||
Ringing = 'ringing',
|
Ringing = 'ringing',
|
||||||
|
Ending = 'ending',
|
||||||
Ended = 'ended',
|
Ended = 'ended',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user