| 326 | } |
| 327 | |
| 328 | void DeleteStickerSet( |
| 329 | not_null<Main::Session*> session, |
| 330 | const StickerSetIdentifier &set, |
| 331 | Fn<void()> done, |
| 332 | Fn<void(QString)> fail) { |
| 333 | session->api().request(MTPstickers_DeleteStickerSet( |
| 334 | Data::InputStickerSet(set)) |
| 335 | ).done([=] { |
| 336 | session->data().stickers().notifyUpdated( |
| 337 | Data::StickersType::Stickers); |
| 338 | if (done) { |
| 339 | done(); |
| 340 | } |
| 341 | }).fail([=](const MTP::Error &error) { |
| 342 | if (fail) { |
| 343 | fail(error.type()); |
| 344 | } |
| 345 | }).send(); |
| 346 | } |
| 347 | |
| 348 | StickerUpload::StickerUpload( |
| 349 | not_null<Main::Session*> session, |
no test coverage detected