mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-25 08:44:38 +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) {
|
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(' ');
|
newFilter = words.isEmpty() ? QString() : words.join(' ');
|
||||||
if (newFilter != _filter || force) {
|
if (newFilter != _filter || force) {
|
||||||
_filter = newFilter;
|
_filter = newFilter;
|
||||||
|
Loading…
Reference in New Issue
Block a user