Fix messageActions

This commit is contained in:
Vendicated 2022-10-17 16:29:18 +02:00
parent 82d53b1928
commit ad054d5c65
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3

View file

@ -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);