From f3783f1a509fca084ea9014831abf85cc89d4a89 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 25 Sep 2023 16:06:09 -0500 Subject: [PATCH] AutosuggestPlugin: don't autosuggest hashtags for now https://gitlab.com/soapbox-pub/soapbox/-/issues/1527 --- src/features/compose/editor/plugins/autosuggest-plugin.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/features/compose/editor/plugins/autosuggest-plugin.tsx b/src/features/compose/editor/plugins/autosuggest-plugin.tsx index aa42ff306..24a9f2627 100644 --- a/src/features/compose/editor/plugins/autosuggest-plugin.tsx +++ b/src/features/compose/editor/plugins/autosuggest-plugin.tsx @@ -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(),