From ad054d5c656967e00191027d729d3570128bb557 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 17 Oct 2022 16:29:18 +0200 Subject: [PATCH] Fix messageActions --- src/plugins/messageActions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/messageActions.ts b/src/plugins/messageActions.ts index a017f542..58a7bb78 100644 --- a/src/plugins/messageActions.ts +++ b/src/plugins/messageActions.ts @@ -15,10 +15,10 @@ export default definePlugin({ dependencies: ["MessageEventsAPI"], start() { - const { deleteMessage, startEditMessage } = findByProps("deleteMessage"); + const { deleteMessage, startEditMessage } = findByProps("deleteMessage", "startEditMessage"); const { can } = findByProps("can", "initialize"); const { MANAGE_MESSAGES } = find(m => typeof m.MANAGE_MESSAGES === "bigint"); - const { isEditing } = findByProps("isEditing"); + const { isEditing } = findByProps("isEditing", "isEditingAny"); document.addEventListener("keydown", keydown); document.addEventListener("keyup", keyup);