Merge pull request #5490 from element-hq/feature/bma/improveImmutables

Ensure that we are using Immutable instead of Persistent
This commit is contained in:
Benoit Marty 2025-10-09 11:48:32 +02:00 committed by GitHub
commit 7ce2c08f6e
86 changed files with 305 additions and 269 deletions

View file

@ -16,7 +16,7 @@ import io.element.android.libraries.matrix.api.room.RoomMember
import io.element.android.libraries.matrix.api.room.roomMembers
import io.element.android.libraries.matrix.ui.model.getAvatarData
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.toPersistentList
import kotlinx.collections.immutable.toImmutableList
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.combine
@ -46,7 +46,7 @@ fun JoinedRoom.roomMemberIdentityStateChange(waitForEncryption: Boolean): Flow<I
identityRoomMember = member,
identityState = identityStateChange.identityState,
)
}.toPersistentList()
}.toImmutableList()
}.distinctUntilChanged()
}
}