Add assertion canary so we know to re-test syncing once desktop

supports sending quoted replies

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 02efbd3069
commit 88d6a83954

@ -97,6 +97,11 @@ NS_ASSUME_NONNULL_BEGIN
groupMetaMessage:TSGroupMessageNone groupMetaMessage:TSGroupMessageNone
quotedMessage:transcript.quotedMessage]; quotedMessage:transcript.quotedMessage];
// TODO: When written, desktop didn't yet support sending quotedMessages, so we didn't have a
// good way to test the handling of transcripts with a quotedMessage. This assertion can be delete
// once we've tested transcripts with quoted messages are processed correctly.
OWSAssert(transcript.quotedMessage == nil);
TSQuotedMessage *_Nullable quotedMessage = transcript.quotedMessage; TSQuotedMessage *_Nullable quotedMessage = transcript.quotedMessage;
if (quotedMessage && quotedMessage.thumbnailAttachmentPointerId) { if (quotedMessage && quotedMessage.thumbnailAttachmentPointerId) {
// We weren't able to derive a local thumbnail, so we'll fetch the referenced attachment. // We weren't able to derive a local thumbnail, so we'll fetch the referenced attachment.

Loading…
Cancel
Save