Przeglądaj źródła

fix: Uses boolean for isReplaced on kick event.

master
damencho 7 miesięcy temu
rodzic
commit
dd4c41be53
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      modules/xmpp/ChatRoom.js

+ 1
- 1
modules/xmpp/ChatRoom.js Wyświetl plik

@@ -1098,7 +1098,7 @@ export default class ChatRoom extends Listenable {
1098 1098
                         + '>status[code="307"]')
1099 1099
                 .length;
1100 1100
         const membersKeys = Object.keys(this.members);
1101
-        const isReplaceParticipant = $(pres).find('flip_device').length;
1101
+        const isReplaceParticipant = $(pres).find('flip_device').length > 0;
1102 1102
 
1103 1103
         if (isKick) {
1104 1104
             const actorSelect

Ładowanie…
Anuluj
Zapisz