add some missing asserts

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 2a7a4aa34f
commit 811a4ac4b5

@ -312,6 +312,7 @@ NS_ASSUME_NONNULL_BEGIN
actionString, actionString,
self.interaction.uniqueId, self.interaction.uniqueId,
[self.mediaItem class]); [self.mediaItem class]);
OWSAssert(NO);
} }
- (TSAttachmentStream *)attachmentStream - (TSAttachmentStream *)attachmentStream

@ -124,9 +124,10 @@ NS_ASSUME_NONNULL_BEGIN
UIImageWriteToSavedPhotosAlbum(self.image, nil, nil, nil); UIImageWriteToSavedPhotosAlbum(self.image, nil, nil, nil);
return; return;
} }
// Shouldn't get here, as only supported actions should be exposed via canPerformEditingAction // Shouldn't get here, as only supported actions should be exposed via canPerformEditingAction
DDLogError(@"'%@' action unsupported for %@: attachmentId=%@", actionString, self.class, self.attachmentId); DDLogError(@"'%@' action unsupported for %@: attachmentId=%@", actionString, self.class, self.attachmentId);
OWSAssert(NO);
} }
@end @end

@ -275,6 +275,7 @@ NS_ASSUME_NONNULL_BEGIN
NSString *actionString = NSStringFromSelector(action); NSString *actionString = NSStringFromSelector(action);
DDLogError( DDLogError(
@"Unexpected action: %@ for VideoAttachmentAdapter with contentType: %@", actionString, self.contentType); @"Unexpected action: %@ for VideoAttachmentAdapter with contentType: %@", actionString, self.contentType);
OWSAssert(NO);
} }
} }

Loading…
Cancel
Save