MM-55208 allow search prefixes (#28146)
* Ignore at and tilde for username and channel searches. * allow using tilde in search suggestions --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5d8bf5f97b
Коммит
41bca03270
@@ -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(
|
||||
|
||||
Ссылка в новой задаче
Block a user