Skip to content

Commit

Permalink
fix(showHiddenChannels): remove obsolete icons patch
Browse files Browse the repository at this point in the history
  • Loading branch information
D3SOX committed Jan 14, 2023
1 parent 9338b92 commit c64de9a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/plugins/showHiddenChannels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();",
Expand Down

0 comments on commit c64de9a

Please sign in to comment.