Fix userpics list glitch.

This commit is contained in:
John Preston 2023-07-20 22:19:32 +04:00
parent 94ad9221ed
commit 1f47b8e130

View file

@ -364,6 +364,9 @@ void GroupCallUserpics::finishAnimating() {
} }
void GroupCallUserpics::toggle(Userpic &userpic, bool shown) { void GroupCallUserpics::toggle(Userpic &userpic, bool shown) {
if (userpic.hiding == !shown && !userpic.shownAnimation.animating()) {
return;
}
userpic.hiding = !shown; userpic.hiding = !shown;
userpic.shownAnimation.start( userpic.shownAnimation.start(
[=] { recountAndRepaint(); }, [=] { recountAndRepaint(); },