Update encryption strings

This commit is contained in:
ismailgulek
2020-09-24 13:27:53 +03:00
parent 2fa0bef123
commit 95e21eedfb
5 changed files with 52 additions and 10 deletions
@@ -860,10 +860,20 @@
case UserEncryptionTrustLevelNotVerified:
case UserEncryptionTrustLevelNoCrossSigning:
case UserEncryptionTrustLevelTrusted:
[encryptionInformation appendString:NSLocalizedStringFromTable(@"room_participants_security_information_room_encrypted", @"Vector", nil)];
{
NSString *info = (self.mxRoom.isDirect) ?
NSLocalizedStringFromTable(@"dm_room_participants_security_information_room_encrypted", @"Vector", nil) :
NSLocalizedStringFromTable(@"room_participants_security_information_room_encrypted", @"Vector", nil);
[encryptionInformation appendString:info];
}
break;
case UserEncryptionTrustLevelNone:
[encryptionInformation appendString:NSLocalizedStringFromTable(@"room_participants_security_information_room_not_encrypted", @"Vector", nil)];
{
NSString *info = (self.mxRoom.isDirect) ?
NSLocalizedStringFromTable(@"dm_room_participants_security_information_room_not_encrypted", @"Vector", nil) :
NSLocalizedStringFromTable(@"room_participants_security_information_room_not_encrypted", @"Vector", nil);
[encryptionInformation appendString:info];
}
break;
case UserEncryptionTrustLevelUnknown:
[encryptionInformation appendString:NSLocalizedStringFromTable(@"room_participants_security_information_loading", @"Vector", nil)];