Parcourir la source

fix(kicked): leave the conference immediately

There is no reason to wait for for the event to be emitted.
release-8443
Hristo Terezov il y a 1 an
Parent
révision
b31738320b
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1
    2
      JitsiConference.js

+ 1
- 2
JitsiConference.js Voir le fichier

@@ -1950,11 +1950,10 @@ JitsiConference.prototype.onMemberKicked = function(
1950 1950
     const actorParticipant = this.participants.get(actorId);
1951 1951
 
1952 1952
     if (isSelfPresence) {
1953
+        this.leave().finally(() => this.xmpp.disconnect());
1953 1954
         this.eventEmitter.emit(
1954 1955
             JitsiConferenceEvents.KICKED, actorParticipant, reason, isReplaceParticipant);
1955 1956
 
1956
-        this.leave().finally(() => this.xmpp.disconnect());
1957
-
1958 1957
         return;
1959 1958
     }
1960 1959
 

Chargement…
Annuler
Enregistrer