Skip to content

Commit

Permalink
Fix typos following previously merged PR
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Sep 29, 2023
1 parent 00a864b commit 0ba502f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MatrixSDK/Data/MXRoom.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -1670,15 +1670,15 @@ - (MXHTTPOperation*)_sendFile:(NSURL*)fileLocalURL
kMXMessageBodyKey: filename,
@"url": fakeMediaURI,
@"info": @{
@"mimetype": (mimeType ?: @"application/octet-stream"),
@"mimetype": (mimetype ?: @"application/octet-stream"),
@"size": @(fileData.length)
},
kMXMessageContentKeyExtensibleTextMSC1767: filename,
kMXMessageContentKeyExtensibleFileMSC1767: @{
kMXMessageContentKeyExtensibleFileSize: @(fileData.length),
kMXMessageContentKeyExtensibleFileName: filename,
kMXMessageContentKeyExtensibleFileURL: fakeMediaURI,
kMXMessageContentKeyExtensibleFileMimeType: (mimeType ?: @"application/octet-stream")
kMXMessageContentKeyExtensibleFileMimeType: (mimetype ?: @"application/octet-stream")
}.mutableCopy}.mutableCopy;

if(additionalTypes.count)
Expand Down

0 comments on commit 0ba502f

Please sign in to comment.