mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-28 11:54:07 +00:00
android, desktop: fix chat preview verified shield layout (#6036)
This commit is contained in:
+14
-12
@@ -138,19 +138,21 @@ fun ChatPreviewView(
|
||||
val deleting by remember(disabled, chat.id) { mutableStateOf(chatModel.deletedChats.value.contains(chat.remoteHostId to chat.chatInfo.id)) }
|
||||
when (cInfo) {
|
||||
is ChatInfo.Direct -> {
|
||||
if (cInfo.contact.verified) {
|
||||
VerifiedIcon()
|
||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
||||
if (cInfo.contact.verified) {
|
||||
VerifiedIcon()
|
||||
}
|
||||
val color = if (deleting)
|
||||
MaterialTheme.colors.secondary
|
||||
else if (cInfo.contact.nextAcceptContactRequest || cInfo.contact.sendMsgToConnect) {
|
||||
MaterialTheme.colors.primary
|
||||
} else if (!cInfo.contact.sndReady) {
|
||||
MaterialTheme.colors.secondary
|
||||
} else {
|
||||
Color.Unspecified
|
||||
}
|
||||
chatPreviewTitleText(color = color)
|
||||
}
|
||||
val color = if (deleting)
|
||||
MaterialTheme.colors.secondary
|
||||
else if (cInfo.contact.nextAcceptContactRequest || cInfo.contact.sendMsgToConnect) {
|
||||
MaterialTheme.colors.primary
|
||||
} else if (!cInfo.contact.sndReady) {
|
||||
MaterialTheme.colors.secondary
|
||||
} else {
|
||||
Color.Unspecified
|
||||
}
|
||||
chatPreviewTitleText(color = color)
|
||||
}
|
||||
is ChatInfo.Group -> {
|
||||
val color = if (deleting) {
|
||||
|
||||
Reference in New Issue
Block a user