MessagePeek: Fix Patch

This commit is contained in:
thororen1234 2026-07-09 18:23:11 -04:00
parent 3092b34376
commit 22c6c97df2
No known key found for this signature in database
2 changed files with 2 additions and 11 deletions

View file

@ -250,7 +250,7 @@ export default definePlugin({
{
find: "PrivateChannel.renderAvatar",
replacement: {
match: /,subText:\i\.isSystemDM\(\).{0,500}:null,(?=name:)/,
match: /,subText:\i\.isSystemDM\(\).{0,700}:null,(?=name:)/,
replace: ",subText:$self.getSubText(arguments[0]),"
}
}

View file

@ -73,16 +73,7 @@ export default definePlugin({
replace: "{...$1,...$self.getPlatform(true)}"
},
]
},
{
find: '"2025-01-virtual-currency-rollout"',
replacement: [
{
match: /enabled:\i\.(?:get|use)Config\(\i\)\.enabled/g,
replace: "enabled:false"
}
]
},
],
getPlatform(bypass, userId?: any) {
const platform = settings.store.platform ?? "desktop";