Update API scheme to layer 215.

This commit is contained in:
John Preston
2025-09-05 10:24:41 +04:00
parent f877e653e9
commit d30dd7450f
3 changed files with 20 additions and 10 deletions
@@ -513,7 +513,7 @@ void CloudThemes::myGiftThemesLoadMore(bool reload) {
}
_myGiftThemesRequestId = _session->api().request(
MTPaccount_GetUniqueGiftChatThemes(
MTP_int(reload ? 0 : _myGiftThemesTokens.size()),
MTP_string(reload ? QString() : _myGiftThemesNextOffset),
MTP_int(kGiftThemesLimit),
MTP_long(_myGiftThemesHash))
).done([=](const MTPaccount_ChatThemes &result) {
@@ -536,7 +536,11 @@ void CloudThemes::myGiftThemesLoadMore(bool reload) {
processGiftThemeGetToken(data));
});
}
_myGiftThemesLoaded = (got < kGiftThemesLimit);
if (const auto next = data.vnext_offset()) {
_myGiftThemesNextOffset = qs(*next);
} else {
_myGiftThemesLoaded = true;
}
_myGiftThemesUpdates.fire({});
}, [&](const MTPDaccount_chatThemesNotModified &) {
if (!reload) {