Skip to content

Commit

Permalink
/issues/5114 - Renamed unstable extensible audio key.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Jan 18, 2022
1 parent 6eb0f6c commit d131cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Riot/Modules/MatrixKit/Models/Room/MXKRoomDataSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -2050,8 +2050,8 @@ - (void)resendEventWithEventId:(NSString *)eventId success:(void (^)(NSString *)
[self removeEventWithEventId:eventId];

if (event.isVoiceMessage) {
NSNumber *duration = event.content[kMXMessageContentKeyExtensibleAudio][kMXMessageContentKeyExtensibleAudioDuration];
NSArray<NSNumber *> *samples = event.content[kMXMessageContentKeyExtensibleAudio][kMXMessageContentKeyExtensibleAudioWaveform];
NSNumber *duration = event.content[kMXMessageContentKeyExtensibleAudioMSC1767][kMXMessageContentKeyExtensibleAudioDuration];
NSArray<NSNumber *> *samples = event.content[kMXMessageContentKeyExtensibleAudioMSC1767][kMXMessageContentKeyExtensibleAudioWaveform];

[self sendVoiceMessage:localFileURL mimeType:mimetype duration:duration.doubleValue samples:samples success:success failure:failure];
} else {
Expand Down

0 comments on commit d131cc9

Please sign in to comment.