Browse Source

fix: Uses boolean for isReplaced on kick event.

master
damencho 7 months ago
parent
commit
dd4c41be53
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/xmpp/ChatRoom.js

+ 1
- 1
modules/xmpp/ChatRoom.js View File

1098
                         + '>status[code="307"]')
1098
                         + '>status[code="307"]')
1099
                 .length;
1099
                 .length;
1100
         const membersKeys = Object.keys(this.members);
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
         if (isKick) {
1103
         if (isKick) {
1104
             const actorSelect
1104
             const actorSelect

Loading…
Cancel
Save