Fix messageActions
This commit is contained in:
parent
82d53b1928
commit
ad054d5c65
1 changed files with 2 additions and 2 deletions
|
@ -15,10 +15,10 @@ export default definePlugin({
|
||||||
dependencies: ["MessageEventsAPI"],
|
dependencies: ["MessageEventsAPI"],
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
const { deleteMessage, startEditMessage } = findByProps("deleteMessage");
|
const { deleteMessage, startEditMessage } = findByProps("deleteMessage", "startEditMessage");
|
||||||
const { can } = findByProps("can", "initialize");
|
const { can } = findByProps("can", "initialize");
|
||||||
const { MANAGE_MESSAGES } = find(m => typeof m.MANAGE_MESSAGES === "bigint");
|
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("keydown", keydown);
|
||||||
document.addEventListener("keyup", keyup);
|
document.addEventListener("keyup", keyup);
|
||||||
|
|
Loading…
Reference in a new issue