RoomVC: Use cells with encryption badge only if needed in order to recover horizontal white space.

This commit is contained in:
SBiOSoftWhare
2020-02-06 18:46:32 +01:00
parent 523c0716a0
commit 558f3853be
11 changed files with 46 additions and 77 deletions
@@ -29,12 +29,11 @@ extern NSString *const kRoomEncryptedDataBubbleCellTapOnEncryptionIcon;
@interface RoomEncryptedDataBubbleCell : NSObject
/**
Return the icon displayed in front an event in an encrypted room .
Return the icon displayed in front of an event in an encrypted room if needed.
@param event the event.
@param session the matrix session
@param event the bubble component.
*/
+ (UIImage*)encryptionIconForEvent:(MXEvent*)event andSession:(MXSession*)session;
+ (UIImage*)encryptionIconForBubbleComponent:(MXKRoomBubbleComponent *)bubbleComponent;
/**
Set the encryption status icon in front of each bubble component.