element call also terminates prompt calls, so do so too

This commit is contained in:
Bruno Windels 2023-01-23 15:06:24 +01:00
parent e140a4ba64
commit 043ad98866

View File

@ -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});
await request.response();
// 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);
}
} else {