Explorar o código

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 %!s(int64=4) %!d(string=hai) anos
pai
achega
b439ae1cc4
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  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'),