Skip to content

Commit

Permalink
Fix broken patches
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuckyz committed Dec 13, 2023
1 parent 6d91179 commit 1df0b57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/plugins/fakeNitro/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export default definePlugin({
},
// Separate patch for allowing using custom app icons
{
find: "location:\"AppIconHome\"",
find: ".FreemiumAppIconIds.DEFAULT&&(",
replacement: {
match: /\i\.\i\.isPremium\(\i\.\i\.getCurrentUser\(\)\)/,
replace: "true"
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/showHiddenChannels/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default definePlugin({
},
// Do not check for unreads when selecting the render level if the channel is hidden
{
match: /(?=!\(0,\i\.getHasImportantUnread\)\(this\.record\))/,
match: /(?<=&&)(?=!\i\.\i\.hasUnread\(this\.record\.id\))/,
replace: "$self.isHiddenChannel(this.record)||"
},
// Make channels we dont have access to be the same level as normal ones
Expand Down Expand Up @@ -334,12 +334,12 @@ export default definePlugin({
replacement: [
{
// Remove the divider and the open chat button for the HiddenChannelLockScreen
match: /"more-options-popout"\)\),(?<=let{channel:(\i).+?inCall:(\i).+?)/,
match: /"more-options-popout"\)\),(?<=channel:(\i).+?inCall:(\i).+?)/,
replace: (m, channel, inCall) => `${m}${inCall}||!$self.isHiddenChannel(${channel},true)&&`
},
{
// Remove invite users button for the HiddenChannelLockScreen
match: /"popup".{0,100}?if\((?<=let{channel:(\i).+?inCall:(\i).+?)/,
match: /"popup".{0,100}?if\((?<=channel:(\i).+?inCall:(\i).+?)/,
replace: (m, channel, inCall) => `${m}(${inCall}||!$self.isHiddenChannel(${channel},true))&&`
},
]
Expand Down

0 comments on commit 1df0b57

Please sign in to comment.