diff --git a/Signal/src/ViewControllers/ConversationView/MessagesViewController.m b/Signal/src/ViewControllers/ConversationView/MessagesViewController.m index bb8915ba14..3210063196 100644 --- a/Signal/src/ViewControllers/ConversationView/MessagesViewController.m +++ b/Signal/src/ViewControllers/ConversationView/MessagesViewController.m @@ -1531,6 +1531,24 @@ typedef enum : NSUInteger { return YES; } +- (BOOL)collectionView:(UICollectionView *)collectionView + canPerformAction:(SEL)action + forItemAtIndexPath:(NSIndexPath *)indexPath + withSender:(id)sender +{ + id messageData = [self messageAtIndexPath:indexPath]; + return [messageData canPerformEditingAction:action]; +} + +- (void)collectionView:(UICollectionView *)collectionView + performAction:(SEL)action + forItemAtIndexPath:(NSIndexPath *)indexPath + withSender:(id)sender +{ + id messageData = [self messageAtIndexPath:indexPath]; + [messageData performEditingAction:action]; +} + - (void)collectionView:(UICollectionView *)collectionView willDisplayCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath @@ -3694,24 +3712,6 @@ typedef enum : NSUInteger { }]; } -- (BOOL)collectionView:(UICollectionView *)collectionView - canPerformAction:(SEL)action - forItemAtIndexPath:(NSIndexPath *)indexPath - withSender:(id)sender -{ - id messageData = [self messageAtIndexPath:indexPath]; - return [messageData canPerformEditingAction:action]; -} - -- (void)collectionView:(UICollectionView *)collectionView - performAction:(SEL)action - forItemAtIndexPath:(NSIndexPath *)indexPath - withSender:(id)sender -{ - id messageData = [self messageAtIndexPath:indexPath]; - [messageData performEditingAction:action]; -} - - (void)updateGroupModelTo:(TSGroupModel *)newGroupModel successCompletion:(void (^_Nullable)())successCompletion { __block TSGroupThread *groupThread;