Browse Source

Fix preview for ignore user in a DM case.

pull/3718/head
Benoit Marty 7 days ago
parent
commit
67efecdec6
  1. 5
      features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/RoomDetailsStateProvider.kt

5
features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/RoomDetailsStateProvider.kt

@ -13,6 +13,7 @@ import io.element.android.features.leaveroom.api.aLeaveRoomState @@ -13,6 +13,7 @@ import io.element.android.features.leaveroom.api.aLeaveRoomState
import io.element.android.features.roomdetails.impl.members.aRoomMember
import io.element.android.features.userprofile.api.UserProfileState
import io.element.android.features.userprofile.shared.aUserProfileState
import io.element.android.libraries.architecture.AsyncData
import io.element.android.libraries.matrix.api.core.RoomAlias
import io.element.android.libraries.matrix.api.core.RoomId
import io.element.android.libraries.matrix.api.core.UserId
@ -145,5 +146,7 @@ fun aDmRoomDetailsState( @@ -145,5 +146,7 @@ fun aDmRoomDetailsState(
me = aRoomMember(),
otherMember = aDmRoomMember(isIgnored = isDmMemberIgnored),
),
roomMemberDetailsState = aUserProfileState()
roomMemberDetailsState = aUserProfileState(
isBlocked = AsyncData.Success(isDmMemberIgnored),
)
)

Loading…
Cancel
Save