mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-10 08:51:12 +00:00
parent
54984efa0a
commit
320105f201
@ -1319,7 +1319,10 @@ void DialogsInner::handlePeerNameChange(not_null<PeerData*> peer, const PeerData
|
||||
}
|
||||
|
||||
void DialogsInner::onFilterUpdate(QString newFilter, bool force) {
|
||||
auto words = TextUtilities::PrepareSearchWords(newFilter);
|
||||
const auto mentionsSearch = (newFilter == qstr("@"));
|
||||
const auto words = mentionsSearch
|
||||
? QStringList(newFilter)
|
||||
: TextUtilities::PrepareSearchWords(newFilter);
|
||||
newFilter = words.isEmpty() ? QString() : words.join(' ');
|
||||
if (newFilter != _filter || force) {
|
||||
_filter = newFilter;
|
||||
|
Loading…
Reference in New Issue
Block a user