Pause story while previewing a voice note.

This commit is contained in:
John Preston 2023-07-20 23:13:35 +04:00
parent 2cd08b8923
commit 1bdab16d7b
3 changed files with 3 additions and 3 deletions

View file

@ -2971,7 +2971,7 @@ bool ComposeControls::isRecordingPressed() const {
} }
rpl::producer<bool> ComposeControls::recordingValue() const { rpl::producer<bool> ComposeControls::recordingValue() const {
return _recording.value(); return _voiceRecordBar->shownValue();
} }
rpl::producer<bool> ComposeControls::hasSendTextValue() const { rpl::producer<bool> ComposeControls::hasSendTextValue() const {

View file

@ -218,7 +218,7 @@ public:
[[nodiscard]] bool isLockPresent() const; [[nodiscard]] bool isLockPresent() const;
[[nodiscard]] bool isRecording() const; [[nodiscard]] bool isRecording() const;
[[nodiscard]] bool isRecordingPressed() const; [[nodiscard]] bool isRecordingPressed() const;
[[nodiscard]] rpl::producer<bool> recordingValue() const; [[nodiscard]] rpl::producer<bool> recordingActiveValue() const;
[[nodiscard]] rpl::producer<bool> hasSendTextValue() const; [[nodiscard]] rpl::producer<bool> hasSendTextValue() const;
void applyCloudDraft(); void applyCloudDraft();

View file

@ -671,7 +671,7 @@ rpl::producer<bool> ReplyArea::activeValue() const {
using namespace rpl::mappers; using namespace rpl::mappers;
return rpl::combine( return rpl::combine(
_controls->focusedValue(), _controls->focusedValue(),
_controls->recordingValue(), _controls->recordingActiveValue(),
_controls->tabbedPanelShownValue(), _controls->tabbedPanelShownValue(),
_choosingAttach.value(), _choosingAttach.value(),
_1 || _2 || _3 || _4 _1 || _2 || _3 || _4