fix(vcDoubleClick): exclude text channel mentions (#159)
This commit is contained in:
parent
2f46b934c9
commit
d6fe937a70
@ -55,7 +55,7 @@ export default definePlugin({
|
|||||||
find: 'className:"channelMention",iconType:(',
|
find: 'className:"channelMention",iconType:(',
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /onClick:(.{1,3}),/,
|
match: /onClick:(.{1,3}),/,
|
||||||
replace: "onClick:(_vcEv)=>_vcEv.detail>=2&&($1)(),",
|
replace: "onClick:(_vcEv)=>_vcEv.detail>=2||_vcEv.target.className.includes('MentionText')&&($1)(),",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user