mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Message decoration: Fix shield appearance behavior.
This commit is contained in:
@@ -51,15 +51,12 @@ NSString *const kRoomEncryptedDataBubbleCellTapOnEncryptionIcon = @"kRoomEncrypt
|
||||
{
|
||||
encryptionIconName = @"encryption_warning";
|
||||
}
|
||||
else
|
||||
else if (event.sender)
|
||||
{
|
||||
MXUserTrustLevel *userTrustLevel = [session.crypto trustLevelForUser:event.sender];
|
||||
MXDeviceInfo *deviceInfo = [session.crypto eventDeviceInfo:event];
|
||||
|
||||
if (deviceInfo.trustLevel.isVerified)
|
||||
{
|
||||
encryptionIconName = nil;
|
||||
}
|
||||
else
|
||||
if (userTrustLevel.isVerified && !deviceInfo.trustLevel.isVerified)
|
||||
{
|
||||
encryptionIconName = @"encryption_warning";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user