End-to-end encryption UI/UX

#723

- Chat screen: Display a padlock in the bottom tool bar in case of encrypted room.
This commit is contained in:
giomfo
2016-11-07 11:36:32 +01:00
parent 3ec6dcf531
commit d772fb44fc
17 changed files with 95 additions and 11 deletions
@@ -24,6 +24,9 @@
#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 56
@interface RoomInputToolbarView()
{
MediaPickerViewController *mediaPicker;
@@ -101,6 +104,22 @@
}
}
- (void)setIsEncrypted:(BOOL)isEncrypted
{
if (isEncrypted)
{
self.encryptedRoomIcon.hidden = NO;
self.messageComposerContainerLeadingConstraint.constant = ROOM_INPUT_TOOLBAR_VIEW_ENCRYPTED_MESSAGE_COMPOSER_CONTAINER_LEADING;
}
else
{
self.encryptedRoomIcon.hidden = YES;
self.messageComposerContainerLeadingConstraint.constant = ROOM_INPUT_TOOLBAR_VIEW_DEFAULT_MESSAGE_COMPOSER_CONTAINER_LEADING;
}
_isEncrypted = isEncrypted;
}
- (void)setActiveCall:(BOOL)activeCall
{
if (_activeCall != activeCall)