diff --git a/src/equicordplugins/equicordHelper/index.tsx b/src/equicordplugins/equicordHelper/index.tsx index 73c144006..05d040a22 100644 --- a/src/equicordplugins/equicordHelper/index.tsx +++ b/src/equicordplugins/equicordHelper/index.tsx @@ -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 (