diff --git a/Telegram/SourceFiles/ui/controls/who_reacted_context_action.cpp b/Telegram/SourceFiles/ui/controls/who_reacted_context_action.cpp index ae9acc05da..4a7dcb3370 100644 --- a/Telegram/SourceFiles/ui/controls/who_reacted_context_action.cpp +++ b/Telegram/SourceFiles/ui/controls/who_reacted_context_action.cpp @@ -165,8 +165,9 @@ Action::Action( + _st.itemStyle.font->height + st::defaultWhoRead.itemPadding.bottom()) { const auto parent = parentMenu->menu(); - const auto checkAppeared = [=, now = crl::now()] { - _appeared = (crl::now() - now) >= parentMenu->st().duration; + const auto delay = anim::Disabled() ? 0 : parentMenu->st().duration; + const auto checkAppeared = [=, now = crl::now()](bool force = false) { + _appeared = force || ((crl::now() - now) >= delay); }; setAcceptBoth(true); @@ -224,8 +225,10 @@ Action::Action( enableMouseSelecting(); base::call_delayed(parentMenu->st().duration, this, [=] { - checkAppeared(); - updateUserpicsFromContent(); + if (!_appeared) { + checkAppeared(true); + updateUserpicsFromContent(); + } }); }