Made calls check less restricted to avoid redundant repaint in profiles.

This commit is contained in:
23rd
2025-11-13 15:49:40 +03:00
parent c183243711
commit 3ffdf8d281
@@ -798,7 +798,7 @@ void TopBar::setupActions(not_null<Window::SessionController*> controller) {
&& user
&& !user->sharedMediaInfo()
&& !user->isInaccessible()
&& user->hasCalls()) {
&& user->callsStatus() != UserData::CallsStatus::Disabled) {
const auto call = Ui::CreateChild<TopBarActionButton>(
this,
tr::lng_profile_action_short_call(tr::now),