mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-01 12:00:48 +00:00
parent
5738998310
commit
7f6c163449
@ -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…
Reference in New Issue
Block a user