2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Always show Bot Privacy Policy button.

This commit is contained in:
John Preston
2024-08-13 15:19:15 +02:00
parent a2785867b2
commit 5f8c007a0c
4 changed files with 47 additions and 12 deletions

View File

@@ -331,7 +331,11 @@ void UserData::setBotInfo(const MTPBotInfo &info) {
d.vmenu_button());
botInfo->inited = true;
if (changedCommands || changedButton) {
const auto privacy = qs(d.vprivacy_policy_url().value_or_empty());
const auto privacyChanged = (botInfo->privacyPolicyUrl != privacy);
botInfo->privacyPolicyUrl = privacy;
if (changedCommands || changedButton || privacyChanged) {
owner().botCommandsChanged(this);
}
} break;