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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user