From c6f75456d70dd63a17489ea33c8f464d4d0ceb26 Mon Sep 17 00:00:00 2001 From: damencho Date: Wed, 18 Nov 2015 15:31:36 -0600 Subject: [PATCH] Fixes storing display name in local members list, avoids dominant speaker to delete it. --- modules/xmpp/ChatRoom.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/xmpp/ChatRoom.js b/modules/xmpp/ChatRoom.js index 97ef44eab..0b1a4bdf3 100644 --- a/modules/xmpp/ChatRoom.js +++ b/modules/xmpp/ChatRoom.js @@ -281,6 +281,10 @@ ChatRoom.prototype.onPresence = function (pres) { this.eventEmitter.emit(XMPPEvents.MUC_ROLE_CHANGED, member.role, member.nick); } + + // store the new display name + if(member.displayName) + this.members[from].displayName = member.displayName; }