diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp index df5ee0316..814d7132b 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp @@ -608,7 +608,7 @@ void Controller::refreshHistoryVisibility() { const auto withUsername = _typeDataSavedValue && (_typeDataSavedValue->privacy == Privacy::HasUsername); _controls.historyVisibilityWrap->toggle( - (withUsername + (!withUsername && !_channelHasLocationOriginalValue && (!_linkedChatSavedValue || !*_linkedChatSavedValue)), anim::type::instant);