From 6f64fea0b129d077a1e9a87240ac53099167b201 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 16 Jan 2024 11:20:41 +0400 Subject: [PATCH] Fix build with Xcode. --- Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp | 2 +- Telegram/SourceFiles/dialogs/dialogs_widget.cpp | 6 ++++++ Telegram/SourceFiles/dialogs/dialogs_widget.h | 7 +++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp index 05e54ec6b..14c9552bb 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_inner_widget.cpp @@ -1781,7 +1781,7 @@ void InnerWidget::mousePressReleased( } } if (auto activated = ClickHandler::unpressed()) { - ActivateClickHandler(window(), activated, { button }); + ActivateClickHandler(window(), activated, ClickContext{ button }); } } diff --git a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp index b41257487..b6f0d414b 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_widget.cpp +++ b/Telegram/SourceFiles/dialogs/dialogs_widget.cpp @@ -2691,6 +2691,12 @@ bool Widget::setSearchInChat( return true; } +bool Widget::setSearchInChat( + Key chat, + PeerData *from) { + return setSearchInChat(chat, from, {}); +} + void Widget::clearSearchCache() { _searchCache.clear(); _singleMessageSearch.clear(); diff --git a/Telegram/SourceFiles/dialogs/dialogs_widget.h b/Telegram/SourceFiles/dialogs/dialogs_widget.h index 3c8373cb1..fc7264376 100644 --- a/Telegram/SourceFiles/dialogs/dialogs_widget.h +++ b/Telegram/SourceFiles/dialogs/dialogs_widget.h @@ -182,8 +182,11 @@ private: [[nodiscard]] bool searchForTopicsRequired(const QString &query) const; bool setSearchInChat( Key chat, - PeerData *from = nullptr, - std::vector tags = {}); + PeerData *from, + std::vector tags); + bool setSearchInChat( + Key chat, + PeerData *from = nullptr); void showCalendar(); void showSearchFrom(); void showMainMenu();