Hide voice recording button in narrow mode

This commit is contained in:
Germain Souquet 2021-08-27 11:12:25 +01:00
parent 4e0f52118d
commit a1f6708a56

View file

@ -424,7 +424,7 @@ export default class MessageComposer extends React.Component<IProps, IState> {
title={this.state.showStickers ? _t("Hide Stickers") : _t("Show Stickers")} title={this.state.showStickers ? _t("Hide Stickers") : _t("Show Stickers")}
/>); />);
} }
if (!this.state.haveRecording) { if (!this.state.haveRecording && !this.state.narrowMode) {
buttons.push( buttons.push(
<AccessibleTooltipButton <AccessibleTooltipButton
className="mx_MessageComposer_button mx_MessageComposer_voiceMessage" className="mx_MessageComposer_button mx_MessageComposer_voiceMessage"