We are not supposed to fallback on alternative alias
This commit is contained in:
parent
5461fd4060
commit
071611b81c
|
@ -115,10 +115,7 @@ internal class DefaultPeekRoomTask @Inject constructor(
|
|||
|
||||
val alias = stateEvents
|
||||
.lastOrNull { it.type == EventType.STATE_ROOM_CANONICAL_ALIAS }
|
||||
?.let {
|
||||
it.content?.toModel<RoomCanonicalAliasContent>()?.canonicalAlias
|
||||
?: it.content?.toModel<RoomCanonicalAliasContent>()?.alternativeAliases?.firstOrNull()
|
||||
}
|
||||
?.let { it.content?.toModel<RoomCanonicalAliasContent>()?.canonicalAlias }
|
||||
|
||||
// not sure if it's the right way to do that :/
|
||||
val memberCount = stateEvents
|
||||
|
|
Loading…
Reference in New Issue