2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fixed stack overflow crash in applying draft at end of voice recording.

Regression was introduced in 50ed60f443.
This commit is contained in:
23rd
2020-12-22 11:24:56 +03:00
parent 348712059b
commit 16c7ec5b05

View File

@@ -1389,8 +1389,9 @@ void VoiceRecordBar::hideFast() {
void VoiceRecordBar::stopRecording(StopType type) {
using namespace ::Media::Capture;
if (type == StopType::Cancel) {
_cancelRequests.fire({});
instance()->stop();
instance()->stop(crl::guard(this, [=](Result &&data) {
_cancelRequests.fire({});
}));
return;
}
instance()->stop(crl::guard(this, [=](Result &&data) {