Fix MutualGroupDMs & Decor broken patches (#3644)
This commit is contained in:
parent
75a2506c51
commit
5c69d340d9
2 changed files with 3 additions and 3 deletions
|
|
@ -17,7 +17,7 @@ import { useCurrentUserDecorationsStore } from "../../lib/stores/CurrentUserDeco
|
||||||
import { cl, DecorationModalStyles, requireAvatarDecorationModal, requireCreateStickerModal } from "../";
|
import { cl, DecorationModalStyles, requireAvatarDecorationModal, requireCreateStickerModal } from "../";
|
||||||
import { AvatarDecorationModalPreview } from "../components";
|
import { AvatarDecorationModalPreview } from "../components";
|
||||||
|
|
||||||
const FileUpload = findComponentByCodeLazy("fileUploadInput,");
|
const FileUpload = findComponentByCodeLazy(".fileUpload),");
|
||||||
|
|
||||||
const { HelpMessage, HelpMessageTypes } = mapMangledModuleLazy('POSITIVE="positive', {
|
const { HelpMessage, HelpMessageTypes } = mapMangledModuleLazy('POSITIVE="positive', {
|
||||||
HelpMessageTypes: filters.byProps("POSITIVE", "WARNING", "INFO"),
|
HelpMessageTypes: filters.byProps("POSITIVE", "WARNING", "INFO"),
|
||||||
|
|
|
||||||
|
|
@ -109,14 +109,14 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
// User Profile Modal v2
|
// User Profile Modal v2
|
||||||
{
|
{
|
||||||
find: ".tabBarPanel,{[",
|
find: ".WIDGETS?",
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /items:(\i),.+?(?=return\(0,\i\.jsxs?\)\("div)/,
|
match: /items:(\i),.+?(?=return\(0,\i\.jsxs?\)\("div)/,
|
||||||
replace: "$&$self.pushSection($1,arguments[0].user);"
|
replace: "$&$self.pushSection($1,arguments[0].user);"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match: /\.tabBarPanel,.+?children:(?=.+?section:(\i))/,
|
match: /\.tabBarPanel,.*?children:(?=.+?section:(\i))/,
|
||||||
replace: "$&$1==='MUTUAL_GDMS'?$self.renderMutualGDMs(arguments[0]):"
|
replace: "$&$1==='MUTUAL_GDMS'?$self.renderMutualGDMs(arguments[0]):"
|
||||||
},
|
},
|
||||||
// Make the gap between each item smaller so our tab can fit.
|
// Make the gap between each item smaller so our tab can fit.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue