* Ignore at and tilde for username and channel searches.

* allow using tilde in search suggestions

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Guillermo Vayá
2024-09-12 12:19:51 +02:00
коммит произвёл GitHub
родитель 5d8bf5f97b
Коммит 41bca03270
3 изменённых файлов: 54 добавлений и 7 удалений

Просмотреть файл

@@ -49,7 +49,10 @@ export default class SearchChannelProvider extends Provider {
if (isAtSearch) {
channelPrefix = channelPrefix.replace(/^@/, '');
}
const isTildeSearch = channelPrefix.startsWith('~');
if (isTildeSearch) {
channelPrefix = channelPrefix.replace(/^~/, '');
}
this.startNewRequest(channelPrefix);
this.autocompleteChannelsForSearch(