From 8f0ba749d1e7b59d021ee9f5acbd98aff3437ca9 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 24 Jun 2022 00:23:04 +0400 Subject: [PATCH] Fix history visibility edit button. Regression was introduced in c3386fba52. Fixes #24691. --- Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);