From 7808cc6d41557cd81fe2dc8cd92cafd6c455740f Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 1 Nov 2023 22:57:36 +0400 Subject: [PATCH] Version 4.11.2: Fix build with Xcode. --- Telegram/SourceFiles/inline_bots/bot_attach_web_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, [=] {