fix(RoleColorEverywhere): Chat mentions (#605)
This commit is contained in:
parent
ed873ef9de
commit
4c5a56a8a5
1 changed files with 2 additions and 2 deletions
|
@ -52,8 +52,8 @@ export default definePlugin({
|
||||||
find: 'className:"mention"',
|
find: 'className:"mention"',
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /user:(\i),channelId:(\i).{0,300}?"@"\.concat\(.+?\)/,
|
match: /user:(\i),channel:(\i).{0,300}?"@"\.concat\(.+?\)/,
|
||||||
replace: "$&,color:$self.getUserColor($1.id,{channelId:$2})"
|
replace: "$&,color:$self.getUserColor($1.id,{channelId:$2.id})"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
predicate: () => settings.store.chatMentions,
|
predicate: () => settings.store.chatMentions,
|
||||||
|
|
Loading…
Reference in a new issue