Fixed accidental stop of voice recording in sections.

This commit is contained in:
23rd 2020-11-22 03:43:56 +03:00 committed by John Preston
parent c109e35d95
commit 5f9e497d38
1 changed files with 1 additions and 1 deletions

View File

@ -1288,6 +1288,7 @@ void VoiceRecordBar::stop(bool send) {
}
void VoiceRecordBar::finish() {
stopRecording(StopType::Cancel);
_recordingLifetime.destroy();
_lockShowing = false;
_recording = false;
@ -1307,7 +1308,6 @@ void VoiceRecordBar::hideFast() {
hide();
_lock->hide();
_level->hide();
stopRecording(StopType::Cancel);
}
void VoiceRecordBar::stopRecording(StopType type) {