2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add faved stickers set loading and saving.

Also move stickers loading methods to ApiWrap.
This commit is contained in:
John Preston
2017-08-02 18:07:28 +03:00
parent b0cc61c621
commit 667eb288d7
20 changed files with 507 additions and 426 deletions

View File

@@ -115,7 +115,7 @@ StickerSetBox::Inner::Inner(QWidget *parent, const MTPInputStickerSet &set) : TW
case mtpc_inputStickerSetShortName: _setShortName = qs(set.c_inputStickerSetShortName().vshort_name); break;
}
MTP::send(MTPmessages_GetStickerSet(_input), rpcDone(&Inner::gotSet), rpcFail(&Inner::failedSet));
App::main()->updateStickers();
AuthSession::Current().api().updateStickers();
subscribe(AuthSession::CurrentDownloaderTaskFinished(), [this] { update(); });