2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Receive and track recent sticker usage date.

This commit is contained in:
John Preston
2018-03-07 20:43:26 +03:00
parent f0a95032a5
commit ccef155f7a
6 changed files with 70 additions and 11 deletions

View File

@@ -1397,7 +1397,9 @@ void ApiWrap::saveStickerSets(
writeRecent = true;
}
_stickersClearRecentRequestId = request(MTPmessages_ClearRecentStickers(MTP_flags(0))).done([this](const MTPBool &result) {
_stickersClearRecentRequestId = request(MTPmessages_ClearRecentStickers(
MTP_flags(0)
)).done([this](const MTPBool &result) {
_stickersClearRecentRequestId = 0;
}).fail([this](const RPCError &error) {
_stickersClearRecentRequestId = 0;
@@ -2301,7 +2303,8 @@ void ApiWrap::requestRecentStickers(TimeId now) {
lang(lng_recent_stickers),
d.vstickers.v,
d.vhash.v,
d.vpacks.v);
d.vpacks.v,
d.vdates.v);
} return;
default: Unexpected("Type in ApiWrap::recentStickersDone()");
}