colocate CollectionViewDelegate methods
// FREEBIE
This commit is contained in:
parent
7a2ad91940
commit
fbba2f5dd7
@ -1531,6 +1531,24 @@ typedef enum : NSUInteger {
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (BOOL)collectionView:(UICollectionView *)collectionView
|
||||
canPerformAction:(SEL)action
|
||||
forItemAtIndexPath:(NSIndexPath *)indexPath
|
||||
withSender:(id)sender
|
||||
{
|
||||
id<OWSMessageData> messageData = [self messageAtIndexPath:indexPath];
|
||||
return [messageData canPerformEditingAction:action];
|
||||
}
|
||||
|
||||
- (void)collectionView:(UICollectionView *)collectionView
|
||||
performAction:(SEL)action
|
||||
forItemAtIndexPath:(NSIndexPath *)indexPath
|
||||
withSender:(id)sender
|
||||
{
|
||||
id<OWSMessageData> 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<OWSMessageData> messageData = [self messageAtIndexPath:indexPath];
|
||||
return [messageData canPerformEditingAction:action];
|
||||
}
|
||||
|
||||
- (void)collectionView:(UICollectionView *)collectionView
|
||||
performAction:(SEL)action
|
||||
forItemAtIndexPath:(NSIndexPath *)indexPath
|
||||
withSender:(id)sender
|
||||
{
|
||||
id<OWSMessageData> messageData = [self messageAtIndexPath:indexPath];
|
||||
[messageData performEditingAction:action];
|
||||
}
|
||||
|
||||
- (void)updateGroupModelTo:(TSGroupModel *)newGroupModel successCompletion:(void (^_Nullable)())successCompletion
|
||||
{
|
||||
__block TSGroupThread *groupThread;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user