mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
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:
committed by
Benoit Marty
parent
3676bca042
commit
4efa95bc0b
+4
-4
@@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user