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
0362498fae
commit
f280ea6a0d
1 changed files with 4 additions and 4 deletions
|
|
@ -95,11 +95,11 @@ internal fun MessageShield.toText(): String {
|
||||||
@Composable
|
@Composable
|
||||||
internal fun MessageShield.toIcon(): ImageVector {
|
internal fun MessageShield.toIcon(): ImageVector {
|
||||||
return when (this) {
|
return when (this) {
|
||||||
is MessageShield.AuthenticityNotGuaranteed,
|
is MessageShield.AuthenticityNotGuaranteed -> CompoundIcons.Info()
|
||||||
is MessageShield.UnverifiedIdentity -> CompoundIcons.Admin()
|
|
||||||
is MessageShield.UnknownDevice,
|
is MessageShield.UnknownDevice,
|
||||||
is MessageShield.UnsignedDevice -> CompoundIcons.HelpSolid()
|
is MessageShield.UnsignedDevice,
|
||||||
is MessageShield.SentInClear -> CompoundIcons.KeyOff()
|
is MessageShield.UnverifiedIdentity -> CompoundIcons.HelpSolid()
|
||||||
|
is MessageShield.SentInClear -> CompoundIcons.LockOff()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue