mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-28 16:04:24 -04:00
Fixes For Merge
This commit is contained in:
parent
5621847709
commit
1fdbbdde99
2 changed files with 5 additions and 6 deletions
|
@ -34,11 +34,10 @@ export default definePlugin({
|
|||
patches: [
|
||||
// Taken from AnonymiseFileNames
|
||||
{
|
||||
find: "instantBatchUpload:",
|
||||
find: 'type:"UPLOAD_START"',
|
||||
replacement: {
|
||||
match: /uploadFiles:(\i),/,
|
||||
replace:
|
||||
"uploadFiles:(...args)=>(args[0].uploads.forEach(f=>f.filename=$self.fixExt(f)),$1(...args)),",
|
||||
match: /await \i\.uploadFiles\((\i),/,
|
||||
replace: "$1.forEach($self.fixExt),$&"
|
||||
},
|
||||
predicate: () => !Settings.plugins.AnonymiseFileNames.enabled,
|
||||
},
|
||||
|
|
|
@ -11,8 +11,8 @@ import { ChannelStore, UploadHandler } from "@webpack/common";
|
|||
|
||||
import { FFmpegState, Sticker } from "./types";
|
||||
|
||||
|
||||
const MessageUpload = findByPropsLazy("instantBatchUpload");
|
||||
// eslint-disable-next-line @stylistic/quotes
|
||||
const MessageUpload = findByPropsLazy(`type:"UPLOAD_START"`, "uploadFiles");
|
||||
const CloudUpload = findLazy(m => m.prototype?.trackUploadFinished);
|
||||
const PendingReplyStore = findByPropsLazy("getPendingReply");
|
||||
const MessageUtils = findByPropsLazy("sendMessage");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue