Skip to content

Commit

Permalink
element-hq/element-ios/issues/4090 - Check against nil/empty addition…
Browse files Browse the repository at this point in the history
…alTypes dictionary on seding files.
  • Loading branch information
stefanceriu committed Jun 9, 2021
1 parent f85f0f3 commit 674c058
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MatrixSDK/Data/MXRoom.m
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,9 @@ - (MXHTTPOperation*)_sendFile:(NSURL*)fileLocalURL
}
} mutableCopy];

[msgContent addEntriesFromDictionary:additionalTypes];
if(additionalTypes.count) {
[msgContent addEntriesFromDictionary:additionalTypes];
}

__block MXEvent *event;
__block id uploaderObserver;
Expand Down

0 comments on commit 674c058

Please sign in to comment.