Change a preview to have a room detail state without any badge.
This commit is contained in:
parent
ba16616caa
commit
774389474b
1 changed files with 5 additions and 3 deletions
|
|
@ -33,7 +33,7 @@ open class RoomDetailsStateProvider : PreviewParameterProvider<RoomDetailsState>
|
||||||
aRoomDetailsState(isEncrypted = false),
|
aRoomDetailsState(isEncrypted = false),
|
||||||
aRoomDetailsState(roomAlias = null),
|
aRoomDetailsState(roomAlias = null),
|
||||||
aDmRoomDetailsState(),
|
aDmRoomDetailsState(),
|
||||||
aDmRoomDetailsState(isDmMemberIgnored = true),
|
aDmRoomDetailsState(isDmMemberIgnored = true, roomName = "Daniel (ignored and clear)", isEncrypted = false),
|
||||||
aRoomDetailsState(canInvite = true),
|
aRoomDetailsState(canInvite = true),
|
||||||
aRoomDetailsState(isFavorite = true),
|
aRoomDetailsState(isFavorite = true),
|
||||||
aRoomDetailsState(
|
aRoomDetailsState(
|
||||||
|
|
@ -136,12 +136,14 @@ fun aRoomNotificationSettings(
|
||||||
fun aDmRoomDetailsState(
|
fun aDmRoomDetailsState(
|
||||||
isDmMemberIgnored: Boolean = false,
|
isDmMemberIgnored: Boolean = false,
|
||||||
roomName: String = "Daniel",
|
roomName: String = "Daniel",
|
||||||
|
isEncrypted: Boolean = true,
|
||||||
) = aRoomDetailsState(
|
) = aRoomDetailsState(
|
||||||
roomName = roomName,
|
roomName = roomName,
|
||||||
isPublic = false,
|
isPublic = false,
|
||||||
|
isEncrypted = isEncrypted,
|
||||||
roomType = RoomDetailsType.Dm(
|
roomType = RoomDetailsType.Dm(
|
||||||
aRoomMember(),
|
me = aRoomMember(),
|
||||||
aDmRoomMember(isIgnored = isDmMemberIgnored),
|
otherMember = aDmRoomMember(isIgnored = isDmMemberIgnored),
|
||||||
),
|
),
|
||||||
roomMemberDetailsState = aUserProfileState()
|
roomMemberDetailsState = aUserProfileState()
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue