mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix recording stop in voice messages.
This commit is contained in:
parent
e6df927e30
commit
24ec0e0866
1 changed files with 5 additions and 1 deletions
|
@ -100,7 +100,11 @@ void Instance::start() {
|
||||||
|
|
||||||
void Instance::stop(Fn<void(Result&&)> callback) {
|
void Instance::stop(Fn<void(Result&&)> callback) {
|
||||||
InvokeQueued(_inner.get(), [=] {
|
InvokeQueued(_inner.get(), [=] {
|
||||||
_inner->stop(callback);
|
_inner->stop([=](Result &&result) {
|
||||||
|
crl::on_main([=, result = std::move(result)]() mutable {
|
||||||
|
callback(std::move(result));
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue