mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
fix(messaging): strip leading @ from special mentions during autocomplete query filtering (#1529)
This commit is contained in:
1 file changed
+1
-1
@@ -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