mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 11:36:03 +03:00
Fixed getUserDisplayname when the user has a null displayname
This commit is contained in:
parent
327dcc98e3
commit
2b4736afcd
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ function(matrixService, $rootScope, $q, $timeout, mPresence) {
|
||||||
|
|
||||||
// Get the user display name from the member list of the room
|
// Get the user display name from the member list of the room
|
||||||
var member = getMember(room_id, user_id);
|
var member = getMember(room_id, user_id);
|
||||||
if (member) {
|
if (member && member.content.displayname) { // Do not consider null displayname
|
||||||
displayName = member.content.displayname;
|
displayName = member.content.displayname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue