diff --git a/MatrixSDK/Data/MXRoom.m b/MatrixSDK/Data/MXRoom.m index 7a8a547a3a..f49d1f901c 100644 --- a/MatrixSDK/Data/MXRoom.m +++ b/MatrixSDK/Data/MXRoom.m @@ -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 diff --git a/changelog.d/pr-1595.change b/changelog.d/pr-1595.change new file mode 100644 index 0000000000..6e6f475547 --- /dev/null +++ b/changelog.d/pr-1595.change @@ -0,0 +1 @@ +Support additional content in voice message.