Use bubbleComponentWithLinkForEventId: in RoomDataSource.

This commit is contained in:
Doug
2021-09-27 18:43:53 +01:00
parent 29c428167f
commit 3923c8fa53
2 changed files with 20 additions and 23 deletions
@@ -110,6 +110,14 @@ typedef NS_ENUM(NSInteger, RoomBubbleCellDataTag)
*/
- (NSInteger)firstVisibleComponentIndex;
/**
Returns the bubble component for the specified event ID, but only if that component
has detected a link in the event's body. Otherwise returns `nil`.
This will also return `nil` If URL previews have been disabled by the user.
*/
- (MXKRoomBubbleComponent *)bubbleComponentWithLinkForEventId:(NSString *)eventId;
#pragma mark - Show all reactions
- (BOOL)showAllReactionsForEvent:(NSString*)eventId;