|
|
@ -181,9 +181,13 @@ NSUInteger const TSAttachmentSchemaVersion = 4;
|
|
|
|
if ([MIMETypeUtil isImage:contentType]) {
|
|
|
|
if ([MIMETypeUtil isImage:contentType]) {
|
|
|
|
return @"📷";
|
|
|
|
return @"📷";
|
|
|
|
} else if ([MIMETypeUtil isVideo:contentType]) {
|
|
|
|
} else if ([MIMETypeUtil isVideo:contentType]) {
|
|
|
|
return @"📽";
|
|
|
|
return @"🎥";
|
|
|
|
} else if ([MIMETypeUtil isAudio:contentType]) {
|
|
|
|
} else if ([MIMETypeUtil isAudio:contentType]) {
|
|
|
|
return @"📻";
|
|
|
|
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(11, 0)) {
|
|
|
|
|
|
|
|
return @"🎧";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return @"📻";
|
|
|
|
|
|
|
|
}
|
|
|
|
} else if ([MIMETypeUtil isAnimated:contentType]) {
|
|
|
|
} else if ([MIMETypeUtil isAnimated:contentType]) {
|
|
|
|
return @"🎡";
|
|
|
|
return @"🎡";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|