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 view) override; - HistoryView::SelectionModeResult elementInSelectionMode() override; + HistoryView::SelectionModeResult elementInSelectionMode(const HistoryView::Element *) override; bool elementIntersectsRange( not_null 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