2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Implement search inside a single topic.

This commit is contained in:
John Preston
2022-10-26 18:49:07 +04:00
parent 60aef7871a
commit ee8f997c14
8 changed files with 107 additions and 33 deletions

View File

@@ -955,9 +955,10 @@ void RowPainter::Paint(
const auto entry = topic ? (Entry*)topic : (Entry*)history;
auto cloudDraft = nullptr;
const auto from = [&] {
return topic
const auto in = row->searchInChat();
return (topic && (in.topic() != topic))
? nullptr
: row->searchInChat()
: in
? item->displayFrom()
: history->peer->migrateTo()
? history->peer->migrateTo()