Disabled field for input while recording voice.

Fixed #29818.
This commit is contained in:
23rd
2025-09-26 16:09:19 +03:00
committed by John Preston
parent 4c0a2b1d3d
commit cb0a3fdb6e
2 changed files with 2 additions and 0 deletions
@@ -1213,6 +1213,7 @@ void HistoryWidget::initVoiceRecordBar() {
_voiceRecordBar->recordingStateChanges(
) | rpl::start_with_next([=](bool active) {
_field->setDisabled(active);
controller()->widget()->setInnerFocus();
}, lifetime());
@@ -2541,6 +2541,7 @@ void ComposeControls::initVoiceRecordBar() {
_recording = true;
changeFocusedControl();
}
_field->setDisabled(active);
_field->setVisible(!active);
if (!active) {
changeFocusedControl();