Skip to content

Commit

Permalink
Add support for Apple context menus in matrix items list screens #5953
Browse files Browse the repository at this point in the history
- Added changelog
  • Loading branch information
gileluard committed Apr 3, 2022
1 parent 6767a05 commit 4cc19e3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Riot/Modules/Room/RoomViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ extern NSNotificationName const RoomGroupCallTileTappedNotification;
*/
@property (nonatomic, nullable) NSString *parentSpaceId;

@property (nonatomic, getter=isContextPreview) BOOL contextPeview;

/**
Display the preview of a room that is unknown for the user.
Expand Down
7 changes: 7 additions & 0 deletions Riot/Modules/Room/RoomViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ - (void)viewDidLoad
{
[super viewDidLoad];

[MXKRoomBubbleTableViewCell disableLongPressGestureOnEvent:YES];

// Register first customized cell view classes used to render bubbles
[[RoomTimelineConfiguration shared].currentStyle.cellProvider registerCellsForTableView:self.bubblesTableView];

Expand Down Expand Up @@ -1593,6 +1595,11 @@ - (void)forceLayoutRefresh

- (BOOL)isRoomPreview
{
if (self.isContextPreview)
{
return YES;
}

// Check first whether some preview data are defined.
if (roomPreviewData)
{
Expand Down
1 change: 1 addition & 0 deletions changelog.d/5953.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Addded support for Apple context menus in matrix items list screens

0 comments on commit 4cc19e3

Please sign in to comment.