Hide the edit menu for attachment until they are uploaded.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-04-10 15:48:19 -04:00
parent f36316c609
commit 435a42bb3c

View file

@ -256,6 +256,10 @@ NS_ASSUME_NONNULL_BEGIN
- (BOOL)canPerformEditingAction:(SEL)action
{
if ([self attachmentStream] && ![self attachmentStream].isUploaded) {
return NO;
}
// Deletes are always handled by TSMessageAdapter
if (action == @selector(delete:)) {
return YES;