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()) {
ActivateClickHandler(window(), activated, { button });
ActivateClickHandler(window(), activated, ClickContext{ button });
}
}

View File

@ -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();

View File

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