From 54b93795770c3020ac178927e4cf234cff066ebf Mon Sep 17 00:00:00 2001 From: damencho Date: Fri, 25 Sep 2015 17:38:28 -0500 Subject: [PATCH] Fixes storing display name in local members list, avoid dominant speaker to delete it. --- modules/xmpp/strophe.emuc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/xmpp/strophe.emuc.js b/modules/xmpp/strophe.emuc.js index 8ec46598c..e4a7b1076 100644 --- a/modules/xmpp/strophe.emuc.js +++ b/modules/xmpp/strophe.emuc.js @@ -262,6 +262,10 @@ module.exports = function(XMPP, eventEmitter) { eventEmitter.emit(XMPPEvents.MUC_ROLE_CHANGED, member.role, member.displayName); } + + // store the new + if(member.displayName) + this.members[from].displayName = member.displayName; } // Always trigger presence to update bindings