End-to-end encryption UI/UX

#723

- Add an unencrypted icon in the composer of a non-crypto room
This commit is contained in:
giomfo
2016-11-10 16:23:43 +01:00
parent 8b16a8119d
commit baa3a946d1
2 changed files with 7 additions and 12 deletions
@@ -24,9 +24,6 @@
#import <Photos/Photos.h>
#define ROOM_INPUT_TOOLBAR_VIEW_DEFAULT_MESSAGE_COMPOSER_CONTAINER_LEADING 51
#define ROOM_INPUT_TOOLBAR_VIEW_ENCRYPTED_MESSAGE_COMPOSER_CONTAINER_LEADING 62
@interface RoomInputToolbarView()
{
MediaPickerViewController *mediaPicker;
@@ -108,13 +105,11 @@
{
if (isEncryptionEnabled)
{
self.encryptedRoomIcon.hidden = NO;
self.messageComposerContainerLeadingConstraint.constant = ROOM_INPUT_TOOLBAR_VIEW_ENCRYPTED_MESSAGE_COMPOSER_CONTAINER_LEADING;
self.encryptedRoomIcon.image = [UIImage imageNamed:@"e2e_verified"];
}
else
{
self.encryptedRoomIcon.hidden = YES;
self.messageComposerContainerLeadingConstraint.constant = ROOM_INPUT_TOOLBAR_VIEW_DEFAULT_MESSAGE_COMPOSER_CONTAINER_LEADING;
self.encryptedRoomIcon.image = [UIImage imageNamed:@"e2e_unencrypted"];
}
_isEncryptionEnabled = isEncryptionEnabled;