Settings: Display device fingerprint with a space every 4 chars like other Riot apps

This commit is contained in:
manuroe
2019-08-26 18:03:26 +02:00
parent f3db70779a
commit 81527d9cf3
@@ -1008,6 +1008,10 @@ SingleImagePickerPresenterDelegate>
attributes:@{NSForegroundColorAttributeName : ThemeService.shared.theme.textPrimaryColor,
NSFontAttributeName: [UIFont systemFontOfSize:17]}]];
NSString *fingerprint = account.mxSession.crypto.deviceEd25519Key;
if (fingerprint)
{
fingerprint = [MXTools addWhiteSpacesToString:fingerprint every:4];
}
[cryptoInformationString appendAttributedString:[[NSMutableAttributedString alloc]
initWithString:fingerprint ? fingerprint : @""
attributes:@{NSForegroundColorAttributeName : ThemeService.shared.theme.textPrimaryColor,