mirror of
https://mau.dev/maunium/synapse.git
synced 2024-09-06 01:46:00 +02:00
Fixed empty display name (content.displayname in a room member can be null)
This commit is contained in:
parent
ec1cc29ecb
commit
4b7a5b7bfa
1 changed files with 3 additions and 1 deletions
|
@ -120,9 +120,11 @@ angular.module('matrixFilter', [])
|
||||||
var room = $rootScope.events.rooms[room_id];
|
var room = $rootScope.events.rooms[room_id];
|
||||||
if (room && (user_id in room.members)) {
|
if (room && (user_id in room.members)) {
|
||||||
var member = room.members[user_id];
|
var member = room.members[user_id];
|
||||||
|
if (member.content.displayname) {
|
||||||
displayName = member.content.displayname;
|
displayName = member.content.displayname;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (undefined === displayName) {
|
if (undefined === displayName) {
|
||||||
// By default, use the user ID
|
// By default, use the user ID
|
||||||
|
|
Loading…
Reference in a new issue