Skip to content

Commit

Permalink
#4090 - Hide voice message button when on action mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gileluard committed Jun 29, 2021
1 parent 78cb2b8 commit 397f88c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Riot/Modules/Room/Views/InputToolbar/RoomInputToolbarView.m
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,10 @@ - (void)setActionMenuOpened:(BOOL)actionMenuOpened
[UIView animateWithDuration:kActionMenuContentAlphaAnimationDuration delay:_actionMenuOpened ? 0 : .1 options:UIViewAnimationOptionCurveEaseIn animations:^{
self->messageComposerContainer.alpha = actionMenuOpened ? 0 : 1;
self.rightInputToolbarButton.alpha = self->growingTextView.text.length == 0 || actionMenuOpened ? 0 : 1;
if (BuildSettings.voiceMessagesEnabled)
{
self.voiceMessageToolbarView.alpha = self->growingTextView.text.length > 0 || actionMenuOpened ? 0 : 1;
}
} completion:nil];

[UIView animateWithDuration:kActionMenuComposerHeightAnimationDuration animations:^{
Expand Down

0 comments on commit 397f88c

Please sign in to comment.