mirror of https://github.com/procxx/kepka.git
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