mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 01:45:52 +03:00
Do not use m.room.aliases event to compute a room name (#2428)
This commit is contained in:
parent
4d9b9cb959
commit
03715e0939
1 changed files with 0 additions and 6 deletions
|
@ -71,12 +71,6 @@ internal class RoomDisplayNameResolver @Inject constructor(
|
|||
return name
|
||||
}
|
||||
|
||||
val aliases = CurrentStateEventEntity.getOrNull(realm, roomId, type = EventType.STATE_ROOM_ALIASES, stateKey = "")?.root
|
||||
name = ContentMapper.map(aliases?.content).toModel<RoomAliasesContent>()?.aliases?.firstOrNull()
|
||||
if (!name.isNullOrEmpty()) {
|
||||
return name
|
||||
}
|
||||
|
||||
val roomMembers = RoomMemberHelper(realm, roomId)
|
||||
val activeMembers = roomMembers.queryActiveRoomMembersEvent().findAll()
|
||||
|
||||
|
|
Loading…
Reference in a new issue