2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Added initial ability to send recorded voice data from listen state.

This commit is contained in:
23rd
2020-11-07 21:02:08 +03:00
committed by John Preston
parent 647cbc5464
commit a19e3ca3dc
4 changed files with 86 additions and 16 deletions

View File

@@ -804,6 +804,11 @@ void HistoryWidget::initVoiceRecordBar() {
updateUnreadMentionsVisibility();
}, lifetime());
_voiceRecordBar->updateSendButtonTypeRequests(
) | rpl::start_with_next([=] {
updateSendButtonType();
}, lifetime());
_voiceRecordBar->hideFast();
}
@@ -3639,6 +3644,7 @@ bool HistoryWidget::isMuteUnmute() const {
bool HistoryWidget::showRecordButton() const {
return Media::Capture::instance()->available()
&& !_voiceRecordBar->isListenState()
&& !HasSendText(_field)
&& !readyToForward()
&& !_editMsgId;