Fix build with Xcode.

This commit is contained in:
John Preston 2024-01-16 11:20:41 +04:00
parent 6b910e11e5
commit 6f64fea0b1
3 changed files with 12 additions and 3 deletions

View File

@ -1781,7 +1781,7 @@ void InnerWidget::mousePressReleased(
} }
} }
if (auto activated = ClickHandler::unpressed()) { if (auto activated = ClickHandler::unpressed()) {
ActivateClickHandler(window(), activated, { button }); ActivateClickHandler(window(), activated, ClickContext{ button });
} }
} }

View File

@ -2691,6 +2691,12 @@ bool Widget::setSearchInChat(
return true; return true;
} }
bool Widget::setSearchInChat(
Key chat,
PeerData *from) {
return setSearchInChat(chat, from, {});
}
void Widget::clearSearchCache() { void Widget::clearSearchCache() {
_searchCache.clear(); _searchCache.clear();
_singleMessageSearch.clear(); _singleMessageSearch.clear();

View File

@ -182,8 +182,11 @@ private:
[[nodiscard]] bool searchForTopicsRequired(const QString &query) const; [[nodiscard]] bool searchForTopicsRequired(const QString &query) const;
bool setSearchInChat( bool setSearchInChat(
Key chat, Key chat,
PeerData *from = nullptr, PeerData *from,
std::vector<Data::ReactionId> tags = {}); std::vector<Data::ReactionId> tags);
bool setSearchInChat(
Key chat,
PeerData *from = nullptr);
void showCalendar(); void showCalendar();
void showSearchFrom(); void showSearchFrom();
void showMainMenu(); void showMainMenu();