Iterate on mapping MessageShield -> icon
iOS impl: https://github.com/element-hq/element-x-ios/blob/develop/ElementX/Sources/Services/Timeline/TimelineItemContent/EncryptionAuthenticity.swift#L59-L65
This commit is contained in:
parent
3676bca042
commit
4efa95bc0b
1 changed files with 4 additions and 4 deletions
|
|
@ -95,11 +95,11 @@ internal fun MessageShield.toText(): String {
|
|||
@Composable
|
||||
internal fun MessageShield.toIcon(): ImageVector {
|
||||
return when (this) {
|
||||
is MessageShield.AuthenticityNotGuaranteed,
|
||||
is MessageShield.UnverifiedIdentity -> CompoundIcons.Admin()
|
||||
is MessageShield.AuthenticityNotGuaranteed -> CompoundIcons.Info()
|
||||
is MessageShield.UnknownDevice,
|
||||
is MessageShield.UnsignedDevice -> CompoundIcons.HelpSolid()
|
||||
is MessageShield.SentInClear -> CompoundIcons.KeyOff()
|
||||
is MessageShield.UnsignedDevice,
|
||||
is MessageShield.UnverifiedIdentity -> CompoundIcons.HelpSolid()
|
||||
is MessageShield.SentInClear -> CompoundIcons.LockOff()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue