Browse Source

Bugfix. Don't set fake nick...

when creating occupant from affiliation change stanza.

This means that when a presence for that occupant arrives, a duplicate
occupant is created (presumably because the original can't be find due
to the wrong nick being set).
JC Brand 4 years ago
parent
commit
b439ae1cc4
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/headless/plugins/muc/muc.js

+ 0 - 1
src/headless/plugins/muc/muc.js

@@ -394,7 +394,6 @@ const ChatRoomMixin = {
                 from,
                 type,
                 affiliation,
-                'nick': Strophe.getNodeFromJid(jid),
                 'states': [],
                 'show': type == 'unavailable' ? 'offline' : 'online',
                 'role': item.getAttribute('role'),