Fix userpics list glitch.

This commit is contained in:
John Preston 2023-07-20 22:19:32 +04:00
parent 94ad9221ed
commit 1f47b8e130
1 changed files with 3 additions and 0 deletions

View File

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