fix(messaging): strip leading @ from special mentions during autocomplete query filtering (#1529)

This commit is contained in:
Aki
2026-08-06 21:00:03 +02:00
committed by GitHub
parent ddc4397389
commit 873c203b5d
@@ -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];