mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Fixed empty display name (content.displayname in a room member can be null)
This commit is contained in:
parent
ec1cc29ecb
commit
4b7a5b7bfa
@ -120,7 +120,9 @@ angular.module('matrixFilter', [])
|
||||
var room = $rootScope.events.rooms[room_id];
|
||||
if (room && (user_id in room.members)) {
|
||||
var member = room.members[user_id];
|
||||
displayName = member.content.displayname;
|
||||
if (member.content.displayname) {
|
||||
displayName = member.content.displayname;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user