From be7fa0cb3f7a30c604315d08f6bf3a4dc51c62a5 Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 14 Jan 2023 20:32:33 +0100 Subject: [PATCH] fix(showHiddenChannels): remove obsolete icons patch (#416) resolves https://github.com/Vendicated/Vencord/issues/415 --- src/plugins/showHiddenChannels.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/plugins/showHiddenChannels.tsx b/src/plugins/showHiddenChannels.tsx index 7f526353..ea6fcc26 100644 --- a/src/plugins/showHiddenChannels.tsx +++ b/src/plugins/showHiddenChannels.tsx @@ -52,14 +52,6 @@ export default definePlugin({ replace: "renderLevel:Vencord.Plugins.plugins.ShowHiddenChannels.shouldShow(this.record, this.category, this.isMuted)?$1.Show:$1.CannotShow" } }, - { - // This is where the logic that chooses the icon is, we override it to be a locked voice channel if it's hidden - find: ".rulesChannelId))", - replacement: { - match: /(\w+)\.locked(.*?)switch\((\w+)\.type\)({case \w+\.\w+\.GUILD_ANNOUNCEMENT)/g, - replace: "Vencord.Plugins.plugins.ShowHiddenChannels.isHiddenChannel($3)||$1.locked$2switch($3._isHiddenChannel?2:$3.type)$4" - } - }, { // inside the onMouseClick handler, we check if the channel is hidden and open the modal if it is find: ".handleThreadsPopoutClose();",