mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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();
|
return i->second.get();
|
||||||
}
|
}
|
||||||
const auto repaint = [=] {
|
const auto repaint = [=] {
|
||||||
|
if (hasPendingResizedItems()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
enumerateUserpics([&](not_null<Element*> view, int userpicTop) {
|
enumerateUserpics([&](not_null<Element*> view, int userpicTop) {
|
||||||
// stop the enumeration if the userpic is below the painted rect
|
// stop the enumeration if the userpic is below the painted rect
|
||||||
if (userpicTop >= _visibleAreaBottom) {
|
if (userpicTop >= _visibleAreaBottom) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue