mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Fix recording stop in voice messages.
This commit is contained in:
@@ -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));
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user