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

Remove MTP from Polls::create interface.

This commit is contained in:
John Preston
2022-08-10 16:41:48 +03:00
parent d2e1517e7a
commit 3698396677
3 changed files with 4 additions and 4 deletions

View File

@@ -1064,7 +1064,7 @@ void PeerMenuCreatePoll(
const auto api = &peer->session().api();
api->polls().create(result.poll, action, crl::guard(weak, [=] {
weak->closeBox();
}), crl::guard(weak, [=](const MTP::Error &error) {
}), crl::guard(weak, [=] {
*lock = false;
weak->submitFailed(tr::lng_attach_failed(tr::now));
}));