Fix AnonymiseFileNames

Also fix issues with User Profile Modal v2 MutualGroupDMs patches
This commit is contained in:
Nuckyz 2025-06-04 20:53:43 -03:00
parent f0fcaf734e
commit 0e90bda3c7
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
3 changed files with 14 additions and 20 deletions

View file

@ -72,18 +72,17 @@ export default definePlugin({
patches: [ patches: [
{ {
find: 'type:"UPLOAD_START"', find: "async uploadFiles(",
replacement: { replacement: [
match: /await \i\.uploadFiles\((\i),/, {
replace: "$1.forEach($self.anonymise),$&" match: /async uploadFiles\((\i),\i\){/,
}, replace: "$&$1.forEach($self.anonymise);"
}, },
{ {
find: 'addFilesTo:"message.attachments"', match: /async uploadFilesSimple\((\i)\){/,
replacement: { replace: "$&$1.forEach($self.anonymise);"
match: /\i.uploadFiles\((\i),/, }
replace: "$1.forEach($self.anonymise),$&" ],
}
}, },
{ {
find: "#{intl::ATTACHMENT_UTILITIES_SPOILER}", find: "#{intl::ATTACHMENT_UTILITIES_SPOILER}",

View file

@ -121,14 +121,9 @@ export default definePlugin({
}, },
// Make the gap between each item smaller so our tab can fit. // Make the gap between each item smaller so our tab can fit.
{ {
match: /className:\i\.tabBar/, match: /type:"top",/,
replace: '$& + " vc-mutual-gdms-modal-v2-tab-bar"' replace: '$&className:"vc-mutual-gdms-modal-v2-tab-bar",'
}, },
// Make the tab bar item text smaller so our tab can fit.
{
match: /(\.tabBarItem.+?variant:)"heading-md\/normal"/,
replace: '$1"heading-sm/normal"'
}
] ]
}, },
{ {

View file

@ -3,5 +3,5 @@
} }
.vc-mutual-gdms-modal-v2-tab-bar { .vc-mutual-gdms-modal-v2-tab-bar {
gap: 12px; --space-xl: 16px;
} }