Skip to content

Commit

Permalink
Pause story while previewing a voice note.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jul 20, 2023
1 parent 2cd08b8 commit 1bdab16
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2971,7 +2971,7 @@ bool ComposeControls::isRecordingPressed() const {
}

rpl::producer<bool> ComposeControls::recordingValue() const {
return _recording.value();
return _voiceRecordBar->shownValue();
}

rpl::producer<bool> ComposeControls::hasSendTextValue() const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class ComposeControls final {
[[nodiscard]] bool isLockPresent() const;
[[nodiscard]] bool isRecording() const;
[[nodiscard]] bool isRecordingPressed() const;
[[nodiscard]] rpl::producer<bool> recordingValue() const;
[[nodiscard]] rpl::producer<bool> recordingActiveValue() const;
[[nodiscard]] rpl::producer<bool> hasSendTextValue() const;

void applyCloudDraft();
Expand Down
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/media/stories/media_stories_reply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ rpl::producer<bool> ReplyArea::activeValue() const {
using namespace rpl::mappers;
return rpl::combine(
_controls->focusedValue(),
_controls->recordingValue(),
_controls->recordingActiveValue(),
_controls->tabbedPanelShownValue(),
_choosingAttach.value(),
_1 || _2 || _3 || _4
Expand Down

0 comments on commit 1bdab16

Please sign in to comment.