diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/peeking/PeekRoomTask.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/peeking/PeekRoomTask.kt index 9fba01efad..5a82d74537 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/peeking/PeekRoomTask.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/peeking/PeekRoomTask.kt @@ -115,10 +115,7 @@ internal class DefaultPeekRoomTask @Inject constructor( val alias = stateEvents .lastOrNull { it.type == EventType.STATE_ROOM_CANONICAL_ALIAS } - ?.let { - it.content?.toModel()?.canonicalAlias - ?: it.content?.toModel()?.alternativeAliases?.firstOrNull() - } + ?.let { it.content?.toModel()?.canonicalAlias } // not sure if it's the right way to do that :/ val memberCount = stateEvents