mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Send correct action on round recording.
This commit is contained in:
parent
6ed25d012f
commit
2567096de0
1 changed files with 8 additions and 2 deletions
|
@ -1885,7 +1885,10 @@ void VoiceRecordBar::recordUpdated(quint16 level, int samples) {
|
|||
}
|
||||
Core::App().updateNonIdle();
|
||||
update(_durationRect);
|
||||
_sendActionUpdates.fire({ Api::SendProgressType::RecordVoice });
|
||||
const auto type = _recordingVideo
|
||||
? Api::SendProgressType::RecordRound
|
||||
: Api::SendProgressType::RecordVoice;
|
||||
_sendActionUpdates.fire({ type });
|
||||
}
|
||||
|
||||
void VoiceRecordBar::stop(bool send) {
|
||||
|
@ -1917,7 +1920,10 @@ void VoiceRecordBar::finish() {
|
|||
|
||||
[[maybe_unused]] const auto s = takeTTLState();
|
||||
|
||||
_sendActionUpdates.fire({ Api::SendProgressType::RecordVoice, -1 });
|
||||
const auto type = _recordingVideo
|
||||
? Api::SendProgressType::RecordRound
|
||||
: Api::SendProgressType::RecordVoice;
|
||||
_sendActionUpdates.fire({ type, -1 });
|
||||
|
||||
_data = {};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue