Skip to content

Commit

Permalink
element-hq/element-ios/issues/4090 - Moved the voice message type to …
Browse files Browse the repository at this point in the history
…MXEvent.
  • Loading branch information
stefanceriu committed Jun 9, 2021
1 parent 27720aa commit 5fea5d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MatrixSDK/Data/MXRoom.m
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ - (MXHTTPOperation*)sendVoiceMessage:(NSURL*)fileLocalURL
{
return [self _sendFile:fileLocalURL
msgType:kMXMessageTypeAudio
additionalTypes:@{@"org.matrix.msc2516.voice" : @{}}
additionalTypes:@{kMXMessageTypeVoiceMessage : @{}}
mimeType:mimeType
localEcho:localEcho
success:success
Expand Down
1 change: 1 addition & 0 deletions MatrixSDK/JSONModels/MXEvent.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ FOUNDATION_EXPORT NSString *const kMXMessageTypeEmote;
FOUNDATION_EXPORT NSString *const kMXMessageTypeNotice;
FOUNDATION_EXPORT NSString *const kMXMessageTypeImage;
FOUNDATION_EXPORT NSString *const kMXMessageTypeAudio;
FOUNDATION_EXPORT NSString *const kMXMessageTypeVoiceMessage;
FOUNDATION_EXPORT NSString *const kMXMessageTypeVideo;
FOUNDATION_EXPORT NSString *const kMXMessageTypeLocation;
FOUNDATION_EXPORT NSString *const kMXMessageTypeFile;
Expand Down
1 change: 1 addition & 0 deletions MatrixSDK/JSONModels/MXEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
NSString *const kMXMessageTypeNotice = @"m.notice";
NSString *const kMXMessageTypeImage = @"m.image";
NSString *const kMXMessageTypeAudio = @"m.audio";
NSString *const kMXMessageTypeVoiceMessage = @"org.matrix.msc2516.voice";
NSString *const kMXMessageTypeVideo = @"m.video";
NSString *const kMXMessageTypeLocation = @"m.location";
NSString *const kMXMessageTypeFile = @"m.file";
Expand Down

0 comments on commit 5fea5d4

Please sign in to comment.