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
@@ -2801,7 +2801,14 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
cell.textLabel.font = [UIFont systemFontOfSize:17];
cell.textLabel.numberOfLines = 0;
cell.textLabel.text = NSLocalizedStringFromTable(@"room_details_advanced_e2e_encryption_enabled", @"Vector", nil);
if (mxRoom.isDirect)
{
cell.textLabel.text = NSLocalizedStringFromTable(@"dm_room_details_advanced_e2e_encryption_enabled", @"Vector", nil);
}
else
{
cell.textLabel.text = NSLocalizedStringFromTable(@"room_details_advanced_e2e_encryption_enabled", @"Vector", nil);
}
cell.textLabel.textColor = ThemeService.shared.theme.textPrimaryColor;
cell.selectionStyle = UITableViewCellSelectionStyleNone;
@@ -2828,7 +2835,14 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
cell.textLabel.font = [UIFont systemFontOfSize:17];
cell.textLabel.numberOfLines = 0;
cell.textLabel.text = NSLocalizedStringFromTable(@"room_details_advanced_e2e_encryption_disabled", @"Vector", nil);
if (mxRoom.isDirect)
{
cell.textLabel.text = NSLocalizedStringFromTable(@"dm_room_details_advanced_e2e_encryption_disabled", @"Vector", nil);
}
else
{
cell.textLabel.text = NSLocalizedStringFromTable(@"room_details_advanced_e2e_encryption_disabled", @"Vector", nil);
}
cell.textLabel.textColor = ThemeService.shared.theme.textPrimaryColor;
cell.selectionStyle = UITableViewCellSelectionStyleNone;