From 3bed91443a0e8cf7bfe850dde38dc13e5ef99c9b Mon Sep 17 00:00:00 2001 From: Nicolas Buquet Date: Fri, 29 Sep 2023 06:56:23 +0200 Subject: [PATCH] Fix incorrect @ NSString marker --- MatrixSDK/Data/MXRoom.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MatrixSDK/Data/MXRoom.m b/MatrixSDK/Data/MXRoom.m index fe1a3a167..8cfad29c1 100644 --- a/MatrixSDK/Data/MXRoom.m +++ b/MatrixSDK/Data/MXRoom.m @@ -1020,7 +1020,7 @@ - (MXHTTPOperation*)sendImage:(NSData*)imageData kMXMessageBodyKey: filename, @"url": fakeMediaURI, @"info": [@{ - @"mimetype": (mimeType ?: @"@application/octet-stream"), + @"mimetype": (mimeType ?: @"application/octet-stream"), @"w": @(imageSize.width), @"h": @(imageSize.height), @"size": @(imageData.length) @@ -1347,7 +1347,7 @@ - (MXHTTPOperation*)sendVideoAsset:(AVAsset*)videoAsset } // update metadata with result of converter output - msgContent[@"info"][@"mimetype"] = (mimeType ?: @"@application/octet-stream"); + msgContent[@"info"][@"mimetype"] = (mimeType ?: @"application/octet-stream"); msgContent[@"info"][@"w"] = @(size.width); msgContent[@"info"][@"h"] = @(size.height); msgContent[@"info"][@"duration"] = @((int)floor(durationInMs)); @@ -1670,7 +1670,7 @@ - (MXHTTPOperation*)_sendFile:(NSURL*)fileLocalURL kMXMessageBodyKey: filename, @"url": fakeMediaURI, @"info": @{ - @"mimetype": (mimeType ?: @"@application/octet-stream"), + @"mimetype": (mimeType ?: @"application/octet-stream"), @"size": @(fileData.length) }, kMXMessageContentKeyExtensibleTextMSC1767: filename, @@ -1678,7 +1678,7 @@ - (MXHTTPOperation*)_sendFile:(NSURL*)fileLocalURL kMXMessageContentKeyExtensibleFileSize: @(fileData.length), kMXMessageContentKeyExtensibleFileName: filename, kMXMessageContentKeyExtensibleFileURL: fakeMediaURI, - kMXMessageContentKeyExtensibleFileMimeType: (mimeType ?: @"@application/octet-stream") + kMXMessageContentKeyExtensibleFileMimeType: (mimeType ?: @"application/octet-stream") }.mutableCopy}.mutableCopy; if(additionalTypes.count)