Small patch fixes for crashing
This commit is contained in:
parent
62bc52f307
commit
9674133629
3 changed files with 3 additions and 3 deletions
|
|
@ -206,7 +206,7 @@ export default definePlugin({
|
|||
find: ".MEMBERLIST_CONTENT_FEED_TOGGLED,",
|
||||
predicate: () => settings.store.removeActivitySection,
|
||||
replacement: {
|
||||
match: /null==\i\|\|.{0,100}VIEW_CHANNEL\)&&/,
|
||||
match: /null==\i\|\|0.{0,100}VIEW_CHANNEL\)&&/,
|
||||
replace: "true||$&"
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
// Patch the header to only return allowed users and roles if it's a hidden channel or locked channel (Like when it's used on the HiddenChannelLockScreen)
|
||||
match: /return\(0,\i\.jsxs?\)\(\i\.\i,{channelId:(\i)\.id(?=.+?(\(0,\i\.jsxs?\)\("div",{className:\i\.\i,children:\[.{0,100}\i\.length>0.+?\]}\)),)/,
|
||||
match: /return\(0,\i\.jsxs?\)\(\i\.\i,{channelId:(\i)\.id,children:\[(?=.{0,1000}?(\(0,\i\.jsxs?\)\("div",{className:\i\.\i,children:\[.{0,100}\i\.length>0.+?\]}\)),)/,
|
||||
replace: (m, channel, allowedUsersAndRolesComponent) => `if($self.isHiddenChannel(${channel},true)){return${allowedUsersAndRolesComponent};}${m}`
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ export default definePlugin({
|
|||
{
|
||||
find: ".EMOJI_PICKER_CONSTANTS_EMOJI_CONTAINER_PADDING_HORIZONTAL)",
|
||||
replacement: {
|
||||
match: /(openPopoutType:void 0(?=.+?isBurstReaction:(\i).+?(\i===\i\.\i.REACTION)).+?\[\2,\i\]=\i\.useState\().+?\)/,
|
||||
match: /(openPopoutType:void 0(?=.+?isBurstReaction:(\i).+?;(\i===\i\.\i.REACTION)).+?\[\2,\i\]=\i\.useState\().+?\)/,
|
||||
replace: (_, rest, _isBurstReactionVariable, isReactionIntention) => `${rest}$self.shouldSuperReactByDefault&&${isReactionIntention})`
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue