mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
RoomDataSource: Handle room members trust level for an encrypted room.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user