Enhancement - Encryption device information:

Hide the Verify and Block buttons when the device is the current one.
This commit is contained in:
giomfo
2016-11-16 15:53:52 +01:00
parent f5e5355a5d
commit 8f8f7e20d6
@@ -195,8 +195,8 @@ static NSAttributedString *verticalWhitespace = nil;
NSMutableAttributedString *verification;
NSString *fingerprint = deviceInfo.fingerprint;
_verifyButton.hidden = NO;
_blockButton.hidden = NO;
// Display here the Verify and Block buttons except if the device is the current one.
_verifyButton.hidden = _blockButton.hidden = [deviceInfo.deviceId isEqualToString:mxSession.matrixRestClient.credentials.deviceId];
switch (deviceInfo.verified)
{