2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Support tags search in sublists.

This commit is contained in:
John Preston
2024-01-30 17:52:04 +04:00
parent 0163938e00
commit 30548c2859
9 changed files with 195 additions and 68 deletions

View File

@@ -1930,7 +1930,9 @@ void Widget::searchMessages(QString query, Key inChat) {
auto tags = Data::SearchTagsFromQuery(query);
if (!tags.empty()) {
inChat = session().data().history(session().user());
if (!inChat.sublist()) {
inChat = session().data().history(session().user());
}
query = QString();
}
const auto inChatChanged = [&] {