| 364 | } |
| 365 | |
| 366 | void GroupCallUserpics::toggle(Userpic &userpic, bool shown) { |
| 367 | if (userpic.hiding == !shown && !userpic.shownAnimation.animating()) { |
| 368 | return; |
| 369 | } |
| 370 | userpic.hiding = !shown; |
| 371 | userpic.shownAnimation.start( |
| 372 | [=] { recountAndRepaint(); }, |
| 373 | shown ? 0. : 1., |
| 374 | shown ? 1. : 0., |
| 375 | kDuration); |
| 376 | } |
| 377 | |
| 378 | void GroupCallUserpics::updatePositions() { |
| 379 | const auto shownCount = ranges::count(_list, false, &Userpic::hiding); |
no test coverage detected