Just highlight event when possible instead of reloading data source

This commit is contained in:
ismailgulek
2021-11-30 14:13:57 +03:00
parent 30c2159fc1
commit 786f7b60a9
3 changed files with 35 additions and 4 deletions
+8
View File
@@ -100,6 +100,14 @@ 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)highlightEvent:(NSString *)eventId completion:(nullable void (^)(void))completion;
/**
Creates and returns a new `RoomViewController` object.