EquicordHelper: note down patches

This commit is contained in:
thororen1234 2026-04-30 15:15:52 -04:00
parent 29c18e8ec1
commit cd1b5dea31
No known key found for this signature in database

View file

@ -172,6 +172,22 @@ export default definePlugin({
}
]
},
// Fix a race condition?
{
find: ".completeOperation(",
replacement: {
match: /(?<=this\.nextId\(\);)(\i\(\i\)),(.{0,200}reject:\i\}\))/,
replace: "$2,$1"
}
},
// catch if it cant open
{
find: "discarding speculative database",
replacement: {
match: /await (\i)\((\i)\)(?=;.{0,15}this\.databases)/,
replace: "$&.catch(()=>null)"
}
},
// When focused on voice channel or group chat voice call
{
find: ".STATUS_WARNING_BACKGROUND})})",
@ -310,20 +326,6 @@ export default definePlugin({
],
predicate: () => Settings.winNativeTitleBar,
},
{
find: ".completeOperation(",
replacement: {
match: /(?<=this\.nextId\(\);)(\i\(\i\)),(.{0,200}reject:\i\}\))/,
replace: "$2,$1"
}
},
{
find: "discarding speculative database",
replacement: {
match: /await (\i)\((\i)\)(?=;.{0,15}this\.databases)/,
replace: "$&.catch(()=>null)"
}
}
],
renderMessageAccessory(props) {
return (