mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 22:26:59 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user