End-to-end encryption UI/UX

#723

- Display device information when user taps on the encryption icon.
- Add this option in event context menu
This commit is contained in:
giomfo
2016-11-16 09:31:58 +01:00
parent 859e9e582a
commit c79e84f4d6
7 changed files with 662 additions and 13 deletions
@@ -14,7 +14,7 @@
limitations under the License.
*/
#import"RoomEncryptedDataBubbleCell.h"
#import "RoomEncryptedDataBubbleCell.h"
NSString *const kRoomEncryptedDataBubbleCellTapOnEncryptionIcon = @"kRoomEncryptedDataBubbleCellTapOnEncryptionIcon";
@@ -47,20 +47,23 @@ NSString *const kRoomEncryptedDataBubbleCellTapOnEncryptionIcon = @"kRoomEncrypt
MXRoom *room = [session roomWithRoomId:event.roomId];
MXDeviceInfo *deviceInfo = [room eventDeviceInfo:event];
switch (deviceInfo.verified)
if (deviceInfo)
{
case MXDeviceUnverified:
switch (deviceInfo.verified)
{
encryptionIcon = @"e2e_warning";
break;
case MXDeviceUnverified:
{
encryptionIcon = @"e2e_warning";
break;
}
case MXDeviceVerified:
{
encryptionIcon = @"e2e_verified";
break;
}
default:
break;
}
case MXDeviceVerified:
{
encryptionIcon = @"e2e_verified";
break;
}
default:
break;
}
}