Skip to content

Commit

Permalink
fix(kicked): leave the conference immediately
Browse files Browse the repository at this point in the history
There is no reason to wait for for the event to be emitted.
  • Loading branch information
hristoterezov committed Nov 7, 2023
1 parent f8a18cf commit aa7cb6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions JitsiConference.js
Original file line number Diff line number Diff line change
Expand Up @@ -1950,11 +1950,10 @@ JitsiConference.prototype.onMemberKicked = function(
const actorParticipant = this.participants.get(actorId);

if (isSelfPresence) {
this.leave().finally(() => this.xmpp.disconnect());
this.eventEmitter.emit(
JitsiConferenceEvents.KICKED, actorParticipant, reason, isReplaceParticipant);

this.leave().finally(() => this.xmpp.disconnect());

return;
}

Expand Down

0 comments on commit aa7cb6e

Please sign in to comment.