From b07948de4063e0bebaff2600c74de056bf6d6cd4 Mon Sep 17 00:00:00 2001 From: Maksim <85766537+Maksimonk@users.noreply.github.com> Date: Sat, 30 Nov 2024 22:48:54 +0300 Subject: [PATCH] Issue 28717 suggestion New elements should be pushed in the beginning of _items --- Telegram/SourceFiles/media/view/media_view_group_thumbs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/media/view/media_view_group_thumbs.cpp b/Telegram/SourceFiles/media/view/media_view_group_thumbs.cpp index c03c20c8e7e9d..2a0c72d2e008f 100644 --- a/Telegram/SourceFiles/media/view/media_view_group_thumbs.cpp +++ b/Telegram/SourceFiles/media/view/media_view_group_thumbs.cpp @@ -569,8 +569,9 @@ void GroupThumbs::fillItems( markCacheStale(); _items.reserve(till - from); for (auto i = from; i != till; ++i) { - _items.push_back(validateCacheEntry(ComputeKey(slice, i))); + _items.insert(_items.begin(), validateCacheEntry(ComputeKey(slice, i))); } + animateAliveItems(current); fillDyingItems(old); startDelayedAnimation();