mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Reversed gifts sort in section of shared media from info profile.
This commit is contained in:
@@ -65,9 +65,9 @@ void RecentSharedMediaGifts::request(
|
||||
auto conter = 0;
|
||||
for (const auto &gift : data.vgifts().v) {
|
||||
if (auto parsed = Api::FromTL(peer, gift)) {
|
||||
entry.ids.push_front(parsed->info.document->id);
|
||||
entry.ids.push_back(parsed->info.document->id);
|
||||
if (entry.ids.size() > kMaxGifts) {
|
||||
entry.ids.pop_back();
|
||||
entry.ids.pop_front();
|
||||
}
|
||||
if (++conter >= kMaxGifts) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user