Fix broken patches
This commit is contained in:
parent
02092a985c
commit
9f8c749421
5 changed files with 11 additions and 12 deletions
|
@ -114,7 +114,7 @@ export default definePlugin({
|
|||
'("MessageActionCreators")', '("ChannelMessages")',
|
||||
'("Routing/Utils")', '("RTCControlSocket")',
|
||||
'("ConnectionEventFramerateReducer")', '("RTCLatencyTestManager")',
|
||||
'("OverlayBridgeStore")', '("RPCServer:WSS")'
|
||||
'("OverlayBridgeStore")', '("RPCServer:WSS")', '("RPCServer:IPC")'
|
||||
].map(logger => ({
|
||||
find: logger,
|
||||
predicate: () => settings.store.disableNoisyLoggers,
|
||||
|
|
|
@ -34,7 +34,7 @@ import UserPermissions from "./components/UserPermissions";
|
|||
import { getSortedRoles, sortPermissionOverwrites } from "./utils";
|
||||
|
||||
const PopoutClasses = findByPropsLazy("container", "scroller", "list");
|
||||
const RoleButtonClasses = findByPropsLazy("button", "buttonInner", "icon", "text");
|
||||
const RoleButtonClasses = findByPropsLazy("button", "buttonInner", "icon", "banner");
|
||||
|
||||
export const enum PermissionsSortOrder {
|
||||
HighestRole,
|
||||
|
|
|
@ -37,8 +37,7 @@ import { getCurrentUserInfo, readNotification } from "./reviewDbApi";
|
|||
import { settings } from "./settings";
|
||||
import { showToast } from "./utils";
|
||||
|
||||
const PopoutClasses = findByPropsLazy("container", "scroller", "list");
|
||||
const RoleButtonClasses = findByPropsLazy("button", "buttonInner", "icon", "text");
|
||||
const RoleButtonClasses = findByPropsLazy("button", "buttonInner", "icon", "banner");
|
||||
|
||||
const guildPopoutPatch: NavContextMenuPatchCallback = (children, { guild }: { guild: Guild, onClose(): void; }) => {
|
||||
if (!guild) return;
|
||||
|
@ -181,9 +180,9 @@ export default definePlugin({
|
|||
onClick={() => openReviewsModal(user.id, user.username)}
|
||||
look={Button.Looks.FILLED}
|
||||
size={Button.Sizes.NONE}
|
||||
color={RoleButtonClasses.color}
|
||||
className={classes(RoleButtonClasses.button, RoleButtonClasses.banner)}
|
||||
innerClassName={classes(RoleButtonClasses.buttonInner, RoleButtonClasses.banner)}
|
||||
color={RoleButtonClasses.bannerColor}
|
||||
className={classes(RoleButtonClasses.button, RoleButtonClasses.icon, RoleButtonClasses.banner)}
|
||||
innerClassName={classes(RoleButtonClasses.buttonInner, RoleButtonClasses.icon, RoleButtonClasses.banner)}
|
||||
>
|
||||
<NotesIcon height={16} width={16} />
|
||||
</Button>
|
||||
|
|
|
@ -257,7 +257,7 @@ export default definePlugin({
|
|||
{
|
||||
find: '"alt+shift+down"',
|
||||
replacement: {
|
||||
match: /(?<=getChannel\(\i\);return null!=(\i))(?=.{0,150}?>0\)&&\(0,\i\.\i\)\(\i\))/,
|
||||
match: /(?<=getChannel\(\i\);return null!=(\i))(?=.{0,200}?>0\)&&\(0,\i\.\i\)\(\i\))/,
|
||||
replace: (_, channel) => `&&!$self.isHiddenChannel(${channel})`
|
||||
}
|
||||
},
|
||||
|
@ -265,8 +265,8 @@ export default definePlugin({
|
|||
{
|
||||
find: ".APPLICATION_STORE&&null!=",
|
||||
replacement: {
|
||||
match: /(?<=getState\(\)\.channelId.{0,30}?\(0,\i\.\i\)\(\i\))(?=\.map\()/,
|
||||
replace: ".filter(e=>!$self.isHiddenChannel(e))"
|
||||
match: /getState\(\)\.channelId.+?(?=\.map\(\i=>\i\.id)/,
|
||||
replace: "$&.filter(e=>!$self.isHiddenChannel(e))"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -213,8 +213,8 @@ export default definePlugin({
|
|||
{
|
||||
find: ".canUsePremiumProfileCustomization,{avatarSrc:",
|
||||
replacement: {
|
||||
match: /children:\(0,\i\.jsx\)\(\i,{src:(\i)/,
|
||||
replace: "style:{cursor:\"pointer\"},onClick:()=>{$self.openImage($1)},$&"
|
||||
match: /\.avatar,\i\.clickable\),onClick:\i,(?<=avatarSrc:(\i).+?)/,
|
||||
replace: "$&style:{cursor:\"pointer\"},onClick:()=>{$self.openImage($1)},"
|
||||
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue