From 4c5a56a8a5730f4dca318fc7ee417a80168075a3 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Thu, 16 Mar 2023 01:27:46 +0000 Subject: fix(RoleColorEverywhere): Chat mentions (#605) --- src/plugins/roleColorEverywhere.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/roleColorEverywhere.tsx b/src/plugins/roleColorEverywhere.tsx index 5d48da0..4085b25 100644 --- a/src/plugins/roleColorEverywhere.tsx +++ b/src/plugins/roleColorEverywhere.tsx @@ -52,8 +52,8 @@ export default definePlugin({ find: 'className:"mention"', replacement: [ { - match: /user:(\i),channelId:(\i).{0,300}?"@"\.concat\(.+?\)/, - replace: "$&,color:$self.getUserColor($1.id,{channelId:$2})" + match: /user:(\i),channel:(\i).{0,300}?"@"\.concat\(.+?\)/, + replace: "$&,color:$self.getUserColor($1.id,{channelId:$2.id})" } ], predicate: () => settings.store.chatMentions, -- cgit