File tree 1 file changed +3
-1
lines changed
src/site/twitch.tv/modules/chat-input
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { UNICODE_TAG_0, UNICODE_TAG_0_REGEX } from "@/common/Constant";
22
22
import type { HookedInstance } from " @/common/ReactHooks" ;
23
23
import { useFloatScreen } from " @/composable/useFloatContext" ;
24
24
import { getModuleRef } from " @/composable/useModule" ;
25
+ import { useConfig } from " @/composable/useSettings" ;
25
26
import UiConfirmPrompt from " @/ui/UiConfirmPrompt.vue" ;
26
27
import UiSuperHint from " @/ui/UiSuperHint.vue" ;
27
28
import { offset } from " @floating-ui/core" ;
@@ -44,9 +45,10 @@ const suggestContainer = useFloatScreen(rootEl, {
44
45
});
45
46
46
47
const alt = refAutoReset (false , 3e4 );
48
+ const shouldBypassDuplicateCheck = useConfig (" chat_input.spam.bypass_duplicate" );
47
49
let prevMessage = " " ;
48
50
function handleDuplicateMessage(content : string ): string {
49
- if (typeof content === " string" && content === prevMessage ) {
51
+ if (shouldBypassDuplicateCheck . value && typeof content === " string" && content === prevMessage ) {
50
52
// Remove existing unicode tags
51
53
// avoids conflict with other extensions
52
54
content = content .replace (UNICODE_TAG_0_REGEX , " " );
You can’t perform that action at this time.
0 commit comments