Merge branch gil/5230_SP2-Adding_Rooms_to_Spaces into gil/5231_SP3-1_Update_room_settings_for_Spaces

This commit is contained in:
Gil Eluard
2022-02-05 21:43:29 +01:00
548 changed files with 20963 additions and 3538 deletions
+29 -2
View File
@@ -30,6 +30,7 @@
@class BadgeLabel;
@class UniversalLinkParameters;
@protocol RoomViewControllerDelegate;
@class RoomDisplayConfiguration;
NS_ASSUME_NONNULL_BEGIN
@@ -72,6 +73,11 @@ extern NSNotificationName const RoomGroupCallTileTappedNotification;
*/
@property (nonatomic, readonly, nullable) RoomPreviewData *roomPreviewData;
/**
Display configuration for the room view controller.
*/
@property (nonatomic, readonly) RoomDisplayConfiguration *displayConfiguration;
/**
Tell whether a badge must be added next to the chevron (back button) showing number of unread rooms.
YES by default.
@@ -104,12 +110,22 @@ extern NSNotificationName const RoomGroupCallTileTappedNotification;
- (IBAction)scrollToBottomAction:(id)sender;
/**
Highlights an event in the timeline. Does not reload room data source if the event is already loaded. Otherwise, loads a new data source around the given event.
@param eventId Identifier of the event to be highlighted.
@param completion Completion block to be called at the end of process. Optional.
*/
- (void)highlightAndDisplayEvent:(NSString *)eventId completion:(nullable void (^)(void))completion;
/**
Creates and returns a new `RoomViewController` object.
@param configuration display configuration for the room view controller.
@return An initialized `RoomViewController` object.
*/
+ (instancetype)instantiate;
+ (instancetype)instantiateWithConfiguration:(RoomDisplayConfiguration *)configuration;
@end
@@ -139,9 +155,11 @@ extern NSNotificationName const RoomGroupCallTileTappedNotification;
@param roomViewController the `RoomViewController` instance.
@param roomID the selected roomId
@param eventID the selected eventId
*/
- (void)roomViewController:(RoomViewController *)roomViewController
showRoomWithId:(NSString *)roomID;
showRoomWithId:(NSString *)roomID
eventId:(nullable NSString *)eventID;
/**
Tells the delegate that the room has been moved to a new room.
@@ -220,12 +238,21 @@ handleUniversalLinkWithParameters:(UniversalLinkParameters*)parameters;
didRequestLocationPresentationForEvent:(MXEvent *)event
bubbleData:(id<MXKRoomBubbleCellDataStoring>)bubbleData;
- (nullable UIActivityViewController *)roomViewController:(RoomViewController *)roomViewController
locationShareActivityViewControllerForEvent:(MXEvent *)event;
- (BOOL)roomViewController:(RoomViewController *)roomViewController
canEndPollWithEventIdentifier:(NSString *)eventIdentifier;
- (void)roomViewController:(RoomViewController *)roomViewController
endPollWithEventIdentifier:(NSString *)eventIdentifier;
- (BOOL)roomViewController:(RoomViewController *)roomViewController
canEditPollWithEventIdentifier:(NSString *)eventIdentifier;
- (void)roomViewController:(RoomViewController *)roomViewController
didRequestEditForPollWithStartEvent:(MXEvent *)startEvent;
@end
NS_ASSUME_NONNULL_END