Skip to content

Commit

Permalink
Add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle committed Oct 4, 2022
1 parent d948ac0 commit 19bc92b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MatrixSDK/Data/MXRoom.m
Original file line number Diff line number Diff line change
Expand Up @@ -1594,16 +1594,16 @@ - (MXHTTPOperation*)sendVoiceMessage:(NSURL*)fileLocalURL
[extensibleAudioContent setObject:scaledSamples forKey:kMXMessageContentKeyExtensibleAudioWaveform];
}

NSMutableDictionary *additionalVoiceMessagesContent = @{kMXMessageContentKeyVoiceMessageMSC3245 : @{},
NSMutableDictionary *extensibleVoiceMessageContent = @{kMXMessageContentKeyVoiceMessageMSC3245 : @{},
kMXMessageContentKeyExtensibleAudioMSC1767: extensibleAudioContent}.mutableCopy;

if (additionalContentParams.count) {
[additionalVoiceMessagesContent addEntriesFromDictionary:additionalContentParams];
[extensibleVoiceMessageContent addEntriesFromDictionary:additionalContentParams];
}

return [self _sendFile:fileLocalURL
msgType:kMXMessageTypeAudio
additionalTypes:additionalVoiceMessagesContent
additionalTypes:extensibleVoiceMessageContent
mimeType:(mimeType ?: @"audio/ogg")
threadId:threadId
localEcho:localEcho
Expand Down
1 change: 1 addition & 0 deletions changelog.d/pr-1595.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support additional content in voice message.

0 comments on commit 19bc92b

Please sign in to comment.