RecentsDataSource: Handle key verification setup banner.

This commit is contained in:
SBiOSoftWhare
2020-06-30 17:31:44 +02:00
parent 64632306de
commit 1216a15765
2 changed files with 109 additions and 11 deletions
@@ -41,6 +41,15 @@ typedef NS_ENUM(NSInteger, SecureBackupBannerDisplay)
SecureBackupBannerDisplaySetup
};
/**
List the different key verification banners that could be displayed.
*/
typedef NS_ENUM(NSInteger, KeyVerificationBannerDisplay)
{
KeyVerificationBannerDisplayNone,
KeyVerificationBannerDisplaySetup
};
/**
Action identifier used when the user tapped on the directory change button.
@@ -54,6 +63,7 @@ extern NSString *const kRecentsDataSourceTapOnDirectoryServerChange;
*/
@interface RecentsDataSource : MXKInterleavedRecentsDataSource
@property (nonatomic) NSInteger keyVerificationBannerSection;
@property (nonatomic) NSInteger secureBackupBannerSection;
@property (nonatomic) NSInteger directorySection;
@property (nonatomic) NSInteger invitesSection;
@@ -71,6 +81,7 @@ extern NSString *const kRecentsDataSourceTapOnDirectoryServerChange;
@property (nonatomic, readonly) NSArray* serverNoticeCellDataArray;
@property (nonatomic, readonly) SecureBackupBannerDisplay secureBackupBannerDisplay;
@property (nonatomic, readonly) KeyVerificationBannerDisplay keyVerificationBannerDisplay;
/**
Set the delegate by specifying the selected display mode.