Rust sdk : use newMessageShield state

This commit is contained in:
ganfra 2024-08-27 17:42:00 +02:00
parent 4e887388ae
commit e5b21c389e
3 changed files with 11 additions and 1 deletions

View file

@ -152,5 +152,6 @@ private fun ShieldState?.map(): MessageShield? {
ShieldStateCode.UNSIGNED_DEVICE -> MessageShield.UnsignedDevice(isCritical)
ShieldStateCode.UNVERIFIED_IDENTITY -> MessageShield.UnverifiedIdentity(isCritical)
ShieldStateCode.SENT_IN_CLEAR -> MessageShield.SentInClear(isCritical)
ShieldStateCode.PREVIOUSLY_VERIFIED -> MessageShield.PreviouslyVerified(isCritical)
}
}