mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-18 05:13:29 -05:00
Patch Fixes
This commit is contained in:
parent
405f46791a
commit
7a0b240500
2 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ export default definePlugin({
|
|||
find: "UNREAD_IMPORTANT:",
|
||||
replacement: [
|
||||
{
|
||||
match: /\.name\),.{0,120}\.children.+?:null/,
|
||||
match: /\.name,{.{0,140}\.children.+?:null/,
|
||||
replace: "$&,$self.CountBadge({channel: arguments[0].channel,})",
|
||||
predicate: () => !settings.store.replaceWhiteDot
|
||||
},
|
||||
|
|
|
@ -178,13 +178,13 @@ export default definePlugin({
|
|||
// Add the hidden eye icon if the channel is hidden
|
||||
{
|
||||
predicate: () => settings.store.showMode === ShowMode.EyeIconRight,
|
||||
match: /\.name\),.{0,120}\.children.+?:null(?<=,channel:(\i).+?)/,
|
||||
match: /\.name,{.{0,140}\.children.+?:null(?<=,channel:(\i).+?)/,
|
||||
replace: (m, channel) => `${m},$self.isHiddenChannel(${channel})?$self.EyeRightIcon():null`
|
||||
},
|
||||
// Add the hidden lock icon if the channel is hidden
|
||||
{
|
||||
predicate: () => settings.store.showMode === ShowMode.LockIconRight,
|
||||
match: /\.name\),.{0,120}\.children.+?:null(?<=,channel:(\i).+?)/,
|
||||
match: /\.name,{.{0,140}\.children.+?:null(?<=,channel:(\i).+?)/,
|
||||
replace: (m, channel) => `${m},$self.isHiddenChannel(${channel})?$self.LockRightIcon():null`
|
||||
},
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue