Update module/deltagreen.js

Co-authored-by: Jalen <72114365+jalensailin@users.noreply.github.com>
This commit is contained in:
reyzor1991
2025-07-18 07:55:59 +03:00
committed by GitHub
co-authored by Jalen
parent 91a009003a
commit 9ce2b1679b
+3 -2
View File
@@ -205,8 +205,9 @@ Hooks.on("renderChatLog", async (app, element, context, options) => {
const btnWithAction = DGUtils.htmlClosest(event.target, "button[data-action]");
const message = DGUtils.htmlClosest(event.target, "li[data-message-id]");
if (btnWithAction && message && message?.dataset?.messageId) {
handleInlineActions(btnWithAction, message?.dataset?.messageId);
const { messageId } = message?.dataset || {}
if (btnWithAction && messageId) {
handleInlineActions(btnWithAction, messageId);
}
});
});