diff --git a/MatrixSDK/Data/MXRoom.m b/MatrixSDK/Data/MXRoom.m index 78c9a10c8..7d88cc258 100644 --- a/MatrixSDK/Data/MXRoom.m +++ b/MatrixSDK/Data/MXRoom.m @@ -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)