diff --git a/module/chat-utility.js b/module/chat-utility.js index 1a51e194..06eb5fac 100644 --- a/module/chat-utility.js +++ b/module/chat-utility.js @@ -26,7 +26,12 @@ export class ChatUtility { } static removeMessages(data) { + if (Misc.isElectedUser()){ + ChatUtility.onRemoveMessages(data); + } + else { game.socket.emit("system.foundryvtt-reve-de-dragon", { msg: "msg_delete_chat_message", data: data }); + } } /* -------------------------------------------- */ diff --git a/module/rdd-utility.js b/module/rdd-utility.js index d981ecb9..de4da058 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -547,7 +547,6 @@ export class RdDUtility { /* -------------------------------------------- */ static onSocketMesssage(sockmsg) { - console.log(">>>>> MSG RECV", sockmsg); switch (sockmsg.msg) { case "msg_gm_chat_message": return ChatUtility.handleGMChatMessage(sockmsg.data);