Fixed getUserDisplayname when the user has a null displayname

pull/4/merge
Emmanuel ROHEE 10 years ago
parent 327dcc98e3
commit 2b4736afcd
  1. 2
      webclient/components/matrix/event-handler-service.js

@ -371,7 +371,7 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
// Get the user display name from the member list of the room
var member = getMember(room_id, user_id);
if (member) {
if (member && member.content.displayname) { // Do not consider null displayname
displayName = member.content.displayname;
}

Loading…
Cancel
Save