Clean up ahead of PR.

// FREEBIE
pull/1/head
Matthew Chen 9 years ago
parent f3ed7697db
commit a0c13490ca

@ -516,6 +516,9 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
dispatch_async([OWSDispatch attachmentsQueue], ^{
TSAttachmentStream *attachmentStream =
[[TSAttachmentStream alloc] initWithContentType:contentType filename:filename];
if (message.isVoiceMessage) {
attachmentStream.attachmentType = TSAttachmentTypeVoiceMessage;
}
NSError *error;
[attachmentStream writeData:dataCopy error:&error];

Loading…
Cancel
Save