RoomBubbleCellData: Handle key verification cells. Add key verification property and add key verification cell data tags.

This commit is contained in:
SBiOSoftWhare
2020-01-14 19:46:02 +01:00
parent 96d58bfcd6
commit 16cbcdcdb9
2 changed files with 167 additions and 25 deletions
@@ -22,9 +22,10 @@ typedef NS_ENUM(NSInteger, RoomBubbleCellDataTag)
RoomBubbleCellDataTagMessage = 0, // Default value used for messages
RoomBubbleCellDataTagMembership,
RoomBubbleCellDataTagRoomCreateWithPredecessor,
RoomBubbleCellDataTagDeviceKeyVerificationRequestIncomingApproval,
RoomBubbleCellDataTagDeviceKeyVerificationRequest,
RoomBubbleCellDataTagDeviceKeyVerificationConclusion
RoomBubbleCellDataTagKeyVerificationNoDisplay,
RoomBubbleCellDataTagKeyVerificationRequestIncomingApproval,
RoomBubbleCellDataTagKeyVerificationRequest,
RoomBubbleCellDataTagKeyVerificationConclusion
};
/**
@@ -73,6 +74,16 @@ typedef NS_ENUM(NSInteger, RoomBubbleCellDataTag)
*/
@property(nonatomic, readonly) CGFloat additionalContentHeight;
/**
MXKeyVerification object associated to key verifcation event when using key verification by direct message.
*/
@property(nonatomic, strong) MXKeyVerification *keyVerification;
/**
Indicate if there is a pending operation that updates `keyVerification` property.
*/
@property(nonatomic) BOOL isKeyVerificationOperationPending;
/**
Indicate to update additional content height.
*/