mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 15:15:13 +00:00
Fixed stack overflow crash in applying draft at end of voice recording.
Regression was introduced in 50ed60f443
.
This commit is contained in:
@@ -1389,8 +1389,9 @@ void VoiceRecordBar::hideFast() {
|
|||||||
void VoiceRecordBar::stopRecording(StopType type) {
|
void VoiceRecordBar::stopRecording(StopType type) {
|
||||||
using namespace ::Media::Capture;
|
using namespace ::Media::Capture;
|
||||||
if (type == StopType::Cancel) {
|
if (type == StopType::Cancel) {
|
||||||
_cancelRequests.fire({});
|
instance()->stop(crl::guard(this, [=](Result &&data) {
|
||||||
instance()->stop();
|
_cancelRequests.fire({});
|
||||||
|
}));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
instance()->stop(crl::guard(this, [=](Result &&data) {
|
instance()->stop(crl::guard(this, [=](Result &&data) {
|
||||||
|
Reference in New Issue
Block a user