From 7a0b2405006a3e20ede76f60965a3f42392a851b Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sun, 8 Dec 2024 21:22:48 -0500 Subject: [PATCH] Patch Fixes --- src/equicordplugins/unreadBadgeCount/index.tsx | 2 +- src/plugins/showHiddenChannels/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/unreadBadgeCount/index.tsx b/src/equicordplugins/unreadBadgeCount/index.tsx index 0b461cdc..e19a1b26 100644 --- a/src/equicordplugins/unreadBadgeCount/index.tsx +++ b/src/equicordplugins/unreadBadgeCount/index.tsx @@ -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 }, diff --git a/src/plugins/showHiddenChannels/index.tsx b/src/plugins/showHiddenChannels/index.tsx index 9aaac9eb..77a68af0 100644 --- a/src/plugins/showHiddenChannels/index.tsx +++ b/src/plugins/showHiddenChannels/index.tsx @@ -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` }, ]