From e02a8a7fdb39dae6899724d9c9bd0c8dddffd13e Mon Sep 17 00:00:00 2001
From: AlexeyZavar <sltkval1@gmail.com>
Date: Wed, 20 Nov 2024 16:49:11 +0300
Subject: [PATCH] fix: make it build

---
 Telegram/SourceFiles/ayu/ui/message_history/history_inner.cpp | 2 +-
 Telegram/SourceFiles/ayu/ui/message_history/history_inner.h   | 2 +-
 Telegram/SourceFiles/history/history_widget.cpp               | 2 +-
 Telegram/lib_ui                                               | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Telegram/SourceFiles/ayu/ui/message_history/history_inner.cpp b/Telegram/SourceFiles/ayu/ui/message_history/history_inner.cpp
index 63ed97d37..2ae49e77b 100644
--- a/Telegram/SourceFiles/ayu/ui/message_history/history_inner.cpp
+++ b/Telegram/SourceFiles/ayu/ui/message_history/history_inner.cpp
@@ -522,7 +522,7 @@ bool InnerWidget::elementUnderCursor(
 	return (Element::Hovered() == view);
 }
 
-HistoryView::SelectionModeResult InnerWidget::elementInSelectionMode() {
+HistoryView::SelectionModeResult InnerWidget::elementInSelectionMode(const HistoryView::Element *) {
 	return {};
 }
 
diff --git a/Telegram/SourceFiles/ayu/ui/message_history/history_inner.h b/Telegram/SourceFiles/ayu/ui/message_history/history_inner.h
index 8c8c6e481..8822860d7 100644
--- a/Telegram/SourceFiles/ayu/ui/message_history/history_inner.h
+++ b/Telegram/SourceFiles/ayu/ui/message_history/history_inner.h
@@ -87,7 +87,7 @@ public:
 	HistoryView::Context elementContext() override;
 	bool elementUnderCursor(
 		not_null<const HistoryView::Element*> view) override;
-	HistoryView::SelectionModeResult elementInSelectionMode() override;
+	HistoryView::SelectionModeResult elementInSelectionMode(const HistoryView::Element *) override;
 	bool elementIntersectsRange(
 		not_null<const HistoryView::Element*> view,
 		int from,
diff --git a/Telegram/SourceFiles/history/history_widget.cpp b/Telegram/SourceFiles/history/history_widget.cpp
index 4bad170f3..8bcfc7570 100644
--- a/Telegram/SourceFiles/history/history_widget.cpp
+++ b/Telegram/SourceFiles/history/history_widget.cpp
@@ -2704,7 +2704,7 @@ void HistoryWidget::setHistory(History *history) {
 	if (was && !now) {
 		_attachToggle->removeEventFilter(_attachBotsMenu.get());
 		_attachBotsMenu->hideFast();
-	} else if (now && !was && !ChatHelpers::ShowPanelOnClick()) {
+	} else if (now && !was) {
 		_attachToggle->installEventFilter(_attachBotsMenu.get());
 	}
 
diff --git a/Telegram/lib_ui b/Telegram/lib_ui
index 7c3c03c87..c0ca053cc 160000
--- a/Telegram/lib_ui
+++ b/Telegram/lib_ui
@@ -1 +1 @@
-Subproject commit 7c3c03c878baa5d84aa6603593bc5618500f38f9
+Subproject commit c0ca053ccc756a85cd9bed488c53374a84a4b726