diff --git a/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp b/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp index 3c045f29cc..5a4bc0a93c 100644 --- a/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp +++ b/Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp @@ -1540,7 +1540,7 @@ void AttachWebView::confirmAddToMenu( const auto disclaimer = !disclaimerAccepted(bot); const auto done = [=](Fn close) { const auto state = (disclaimer - || (*allowed) && (*allowed)->checked()) + || ((*allowed) && (*allowed)->checked())) ? ToggledState::AllowedToWrite : ToggledState::Added; toggleInMenu(bot.user, state, [=] {