diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp index 95a2a2c5ca..4b2cef806d 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp @@ -874,7 +874,7 @@ void Controller::refreshHistoryVisibility() { (!withUsername && !_channelHasLocationOriginalValue && (!_discussionLinkSavedValue || !*_discussionLinkSavedValue) - && (!_forumSavedValue || !*_forumSavedValue)), + && !_forumSavedValue.value_or(_peer->isForum())), anim::type::instant); }