From d6fe937a709815f624082edb97ba0e83ac3c337c Mon Sep 17 00:00:00 2001 From: Nico Date: Tue, 25 Oct 2022 18:09:21 +0200 Subject: [PATCH] fix(vcDoubleClick): exclude text channel mentions (#159) --- src/plugins/vcDoubleClick.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/vcDoubleClick.ts b/src/plugins/vcDoubleClick.ts index 3600ac17..e822db41 100644 --- a/src/plugins/vcDoubleClick.ts +++ b/src/plugins/vcDoubleClick.ts @@ -55,7 +55,7 @@ export default definePlugin({ find: 'className:"channelMention",iconType:(', replacement: { match: /onClick:(.{1,3}),/, - replace: "onClick:(_vcEv)=>_vcEv.detail>=2&&($1)(),", + replace: "onClick:(_vcEv)=>_vcEv.detail>=2||_vcEv.target.className.includes('MentionText')&&($1)(),", } } ],