Fixes storing display name in local members list, avoid dominant speaker to delete it.

This commit is contained in:
damencho 2015-09-25 17:38:28 -05:00
parent fd954580b7
commit 54b9379577
1 changed files with 4 additions and 0 deletions

View File

@ -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