Fixed empty display name (content.displayname in a room member can be null)

This commit is contained in:
Emmanuel ROHEE 2014-09-05 15:54:34 +02:00
parent ec1cc29ecb
commit 4b7a5b7bfa

View File

@ -120,9 +120,11 @@ angular.module('matrixFilter', [])
var room = $rootScope.events.rooms[room_id];
if (room && (user_id in room.members)) {
var member = room.members[user_id];
if (member.content.displayname) {
displayName = member.content.displayname;
}
}
}
if (undefined === displayName) {
// By default, use the user ID