RoomDataSource: Handle room members trust level for an encrypted room.

This commit is contained in:
SBiOSoftWhare
2020-01-22 16:21:47 +01:00
parent 6f2b1c470f
commit fed1ce4560
2 changed files with 127 additions and 0 deletions
@@ -19,6 +19,18 @@
#import "WidgetManager.h"
/**
RoomEncryptionTrustLevel represents the room members trust level in an encrypted room.
*/
typedef NS_ENUM(NSUInteger, RoomEncryptionTrustLevel) {
RoomEncryptionTrustLevelTrusted,
RoomEncryptionTrustLevelWarning,
RoomEncryptionTrustLevelNormal,
RoomEncryptionTrustLevelUnknown
};
@protocol RoomDataSourceDelegate;
/**
The data source for `RoomViewController` in Vector.
*/
@@ -39,6 +51,11 @@
*/
@property(nonatomic) BOOL showBubbleDateTimeOnSelection;
/**
Current room members trust level for an encrypted room.
*/
@property(nonatomic, readonly) RoomEncryptionTrustLevel encryptionTrustLevel;
/**
Check if there is an active jitsi widget in the room and return it.
@@ -85,3 +102,9 @@
failure:(void(^)(NSError*))failure;
@end
@protocol RoomDataSourceDelegate <MXKDataSourceDelegate>
- (void)roomDataSource:(RoomDataSource*)roomDataSource didUpdateEncryptionTrustLevel:(RoomEncryptionTrustLevel)roomEncryptionTrustLevel;
@end