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

Fix recording stop in voice messages.

This commit is contained in:
John Preston
2020-10-05 10:48:34 +03:00
parent e6df927e30
commit 24ec0e0866

View File

@@ -100,7 +100,11 @@ void Instance::start() {
void Instance::stop(Fn<void(Result&&)> callback) {
InvokeQueued(_inner.get(), [=] {
_inner->stop(callback);
_inner->stop([=](Result &&result) {
crl::on_main([=, result = std::move(result)]() mutable {
callback(std::move(result));
});
});
});
}