fix voice messages for iOS

// FREEBIE
pull/1/head
Michael Kirk 9 years ago
parent 7d70f6e770
commit 1df99c5812

@ -61,6 +61,7 @@ NS_ASSUME_NONNULL_BEGIN
[supportedAttachmentPointers addObject:pointer];
[supportedAttachmentIds addObject:pointer.uniqueId];
} else {
DDLogError(@"%@ Received unsupported attachment of type: %@", self.tag, pointer.contentType);
TSInfoMessage *infoMessage = [[TSInfoMessage alloc] initWithTimestamp:timestamp
inThread:thread
messageType:TSInfoMessageTypeUnsupportedMessage];
@ -87,6 +88,16 @@ NS_ASSUME_NONNULL_BEGIN
return self.supportedAttachmentPointers.count > 0;
}
+ (NSString *)tag
{
return [NSString stringWithFormat:@"[%@]", self.class];
}
- (NSString *)tag
{
return self.class.tag;
}
@end
NS_ASSUME_NONNULL_END

@ -20,6 +20,7 @@ NSString *const OWSMimeTypeImagePng = @"image/png";
+ (NSDictionary *)supportedAudioMIMETypesToExtensionTypes {
return @{
@"audio/aac" : @"m4a",
@"audio/x-m4p" : @"m4p",
@"audio/x-m4b" : @"m4b",
@"audio/x-m4a" : @"m4a",

Loading…
Cancel
Save