mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Hide the edit menu for attachment until they are uploaded.
// FREEBIE
This commit is contained in:
parent
f36316c609
commit
435a42bb3c
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue