浏览代码

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 年之前
父节点
当前提交
b439ae1cc4
共有 1 个文件被更改,包括 0 次插入1 次删除
  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'),