mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
parent
5738998310
commit
7f6c163449
1 changed files with 3 additions and 0 deletions
|
@ -1218,6 +1218,9 @@ HistoryInner::VideoUserpic *HistoryInner::validateVideoUserpic(
|
|||
return i->second.get();
|
||||
}
|
||||
const auto repaint = [=] {
|
||||
if (hasPendingResizedItems()) {
|
||||
return;
|
||||
}
|
||||
enumerateUserpics([&](not_null<Element*> view, int userpicTop) {
|
||||
// stop the enumeration if the userpic is below the painted rect
|
||||
if (userpicTop >= _visibleAreaBottom) {
|
||||
|
|
Loading…
Add table
Reference in a new issue