finally update this thing

master
Drake 2 years ago
parent 72981d7156
commit 2e330bbe1e

@ -1,19 +1,21 @@
function onStart(ctx) { const { findByProps } = demon.summon("modules/webpack")
const createPendingReply = demon.webpack.findByProps("createPendingReply") const { before } = demon.summon("patcher")
ctx["unpatch"] = demon.patcher.before("createPendingReply", createPendingReply, (args) => {
function onStart() {
const createPendingReply = findByProps("createPendingReply")
const unpatch = before("createPendingReply", createPendingReply, (args) => {
args[0].shouldMention = false args[0].shouldMention = false
}) })
return {
unpatch
}
} }
function onStop(ctx) { function onStop(ctx) {
ctx["unpatch"]() ctx.unpatch()
} }
export default { export default {
onStart, onStart,
onStop, onStop
metadata: {
name: "noReplyMention",
desc: "Disable reply pings by default. (Cumcord port)",
author: "Drake",
cumcord: false
}
} }

Loading…
Cancel
Save