Skip to content

Commit

Permalink
Update sendMessage.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico040 authored May 14, 2024
1 parent ea75829 commit 5f9f1c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/freemoji/src/patches/sendMessage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { findByProps } from "@vendetta/metro";
import { before } from "../vpatcher";
import { before } from "@vendetta/patcher";
import modifyIfNeeded from "../msgProcessor";

const messageModule = findByProps("sendMessage", "receiveMessage");
Expand All @@ -8,4 +8,4 @@ const uploadModule = findByProps("uploadLocalFiles");
export default [
before("sendMessage", messageModule, (args) => modifyIfNeeded(args[1])),
before("uploadLocalFiles", uploadModule, (args) => modifyIfNeeded(args[0].parsedMessage)),
];
];

0 comments on commit 5f9f1c8

Please sign in to comment.