diff --git a/SignalServiceKit/src/Devices/OWSRecordTranscriptJob.m b/SignalServiceKit/src/Devices/OWSRecordTranscriptJob.m index c132f3272..72a2177dc 100644 --- a/SignalServiceKit/src/Devices/OWSRecordTranscriptJob.m +++ b/SignalServiceKit/src/Devices/OWSRecordTranscriptJob.m @@ -97,6 +97,11 @@ NS_ASSUME_NONNULL_BEGIN groupMetaMessage:TSGroupMessageNone 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; if (quotedMessage && quotedMessage.thumbnailAttachmentPointerId) { // We weren't able to derive a local thumbnail, so we'll fetch the referenced attachment.