Fix crash on data share in attach bots.

This commit is contained in:
John Preston 2022-07-25 18:47:40 +03:00
parent edfb7bb65a
commit 136eaee8d5

View file

@ -779,7 +779,7 @@ void AttachWebView::show(
)).done([=](const MTPUpdates &result) {
_session->api().applyUpdates(result);
}).send();
cancel();
crl::on_main(this, [=] { cancel(); });
});
const auto handleLocalUri = [close](QString uri) {
const auto local = Core::TryConvertUrlToLocal(uri);