mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
We are not supposed to fallback on alternative alias
This commit is contained in:
parent
5461fd4060
commit
071611b81c
1 changed files with 1 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue