mirror of
https://github.com/fluxerapp/fluxer.git
synced 2026-09-03 05:10:25 +03:00
fix(messaging): strip leading @ from special mentions during autocomplete query filtering (#1529)
This commit is contained in:
@@ -546,7 +546,7 @@ export function useTextareaAutocomplete({
|
||||
const specialMentions = canMentionEveryone
|
||||
? SPECIAL_MENTIONS.filter((mention) => {
|
||||
if (!queryForMatching) return true;
|
||||
return mention.kind.toLowerCase().includes(queryForMatching.toLowerCase());
|
||||
return mention.kind.slice(1).toLowerCase().includes(queryForMatching.toLowerCase());
|
||||
})
|
||||
: [];
|
||||
options = [...members, ...specialMentions, ...roles];
|
||||
|
||||
Reference in New Issue
Block a user