2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix history visibility edit button.

Regression was introduced in c3386fba52.

Fixes #24691.
This commit is contained in:
John Preston
2022-06-24 00:23:04 +04:00
parent fc8ea688a3
commit 8f0ba749d1

View File

@@ -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);