mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-28 21:22:02 +00:00
fix one cause of SYWEB-53
This commit is contained in:
parent
2771efb51c
commit
c9f73bd325
@ -49,15 +49,12 @@ angular.module('matrixFilter', [])
|
|||||||
if (member.state_key !== user_id) {
|
if (member.state_key !== user_id) {
|
||||||
|
|
||||||
if (member.state_key in $rootScope.presence) {
|
if (member.state_key in $rootScope.presence) {
|
||||||
// If the user is available in presence, use the displayname there
|
// If the user is listed in presence, use the displayname there
|
||||||
// as it is the most uptodate
|
// as it is the most uptodate
|
||||||
roomName = $rootScope.presence[member.state_key].content.displayname;
|
roomName = $rootScope.presence[member.state_key].content.displayname || member.state_key;
|
||||||
}
|
}
|
||||||
else if (member.content.displayname) {
|
else {
|
||||||
roomName = member.content.displayname;
|
roomName = member.content.displayname || member.state_key;
|
||||||
}
|
|
||||||
else {
|
|
||||||
roomName = member.state_key;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user