We are not supposed to fallback on alternative alias

This commit is contained in:
Benoit Marty 2020-12-11 16:38:22 +01:00
parent 5461fd4060
commit 071611b81c
1 changed files with 1 additions and 4 deletions

View File

@ -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