mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
element call also terminates prompt calls, so do so too
This commit is contained in:
parent
e140a4ba64
commit
043ad98866
@ -286,7 +286,7 @@ export class GroupCall extends EventEmitter<{change: never}> {
|
|||||||
const request = this.options.hsApi.sendState(this.roomId, EventType.GroupCallMember, this.options.ownUserId, memberContent, {log});
|
const request = this.options.hsApi.sendState(this.roomId, EventType.GroupCallMember, this.options.ownUserId, memberContent, {log});
|
||||||
await request.response();
|
await request.response();
|
||||||
// our own user isn't included in members, so not in the count
|
// our own user isn't included in members, so not in the count
|
||||||
if (this.intent === CallIntent.Ring && this._members.size === 0) {
|
if ((this.intent === CallIntent.Ring || this.intent === CallIntent.Prompt) && this._members.size === 0) {
|
||||||
await this.terminate(log);
|
await this.terminate(log);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user