Avoid crash - reply only works from ConversationVC

// FREEBIE
pull/1/head
Michael Kirk 7 years ago
parent ac458197a5
commit fda5d65674

@ -118,6 +118,8 @@ NSString *NSStringForOWSMessageCellType(OWSMessageCellType cellType);
- (void)shareTextAction; - (void)shareTextAction;
- (void)saveMediaAction; - (void)saveMediaAction;
- (void)deleteAction; - (void)deleteAction;
- (SEL)replyActionSelector;
- (SEL)metadataActionSelector; - (SEL)metadataActionSelector;
@end @end

@ -432,6 +432,14 @@ NS_ASSUME_NONNULL_BEGIN
if (action == self.viewItem.metadataActionSelector) { if (action == self.viewItem.metadataActionSelector) {
return NO; return NO;
} }
// Reply is not supported from MediaDetailView.
// TODO implement a "scroll to message" action which would
// let users scroll back to the media message in their message history.
if (action == self.viewItem.replyActionSelector) {
return NO;
}
return [self.viewItem canPerformAction:action]; return [self.viewItem canPerformAction:action];
} }

Loading…
Cancel
Save