AutosuggestPlugin: don't autosuggest hashtags for now

https://gitlab.com/soapbox-pub/soapbox/-/issues/1527
This commit is contained in:
Alex Gleason
2023-09-25 16:06:09 -05:00
parent 4b5602a086
commit f3783f1a50

View File

@ -342,11 +342,6 @@ const AutosuggestPlugin = ({
if (!node) return null;
if (['hashtag'].includes(node.getType())) {
const matchingString = node.getTextContent();
return { leadOffset: 0, matchingString };
}
if (node.getType() === 'text') {
const [leadOffset, matchingString] = textAtCursorMatchesToken(
node.getTextContent(),