mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Added ability to force request favorite stickers.
This commit is contained in:
@@ -228,7 +228,7 @@ void Stickers::incrementSticker(not_null<DocumentData*> document) {
|
||||
auto index = set->stickers.indexOf(document);
|
||||
if (index > 0) {
|
||||
if (set->dates.empty()) {
|
||||
session().api().requestRecentStickersForce();
|
||||
session().api().requestSpecialStickersForce(false, true, false);
|
||||
} else {
|
||||
Assert(set->dates.size() == set->stickers.size());
|
||||
set->dates.erase(set->dates.begin() + index);
|
||||
@@ -260,7 +260,7 @@ void Stickers::incrementSticker(not_null<DocumentData*> document) {
|
||||
set->emoji[emoji].push_front(document);
|
||||
}
|
||||
} else {
|
||||
session().api().requestRecentStickersForce();
|
||||
session().api().requestSpecialStickersForce(false, true, false);
|
||||
}
|
||||
|
||||
writeRecentStickers = true;
|
||||
|
Reference in New Issue
Block a user