#4094 - Disable message replies while recording audio messages.

This commit is contained in:
Stefan Ceriu
2021-07-12 12:18:49 +03:00
parent 22bf808cc6
commit 436083ae8c
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -5831,7 +5831,7 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
MXWeakify(self);
RoomContextualMenuItem *replyMenuItem = [[RoomContextualMenuItem alloc] initWithMenuAction:RoomContextualMenuActionReply];
replyMenuItem.isEnabled = [self.roomDataSource canReplyToEventWithId:event.eventId];
replyMenuItem.isEnabled = [self.roomDataSource canReplyToEventWithId:event.eventId] && !self.voiceMessageController.isRecordingAudio;
replyMenuItem.action = ^{
MXStrongifyAndReturnIfNil(self);