fix: suppression message par MJ
Ne pas passer par un socket pour le user qui va traiter le message
This commit is contained in:
parent
bd7f3a9b3d
commit
6a85073dbb
@ -26,8 +26,13 @@ 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 });
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static removeChatMessageContaining(part) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user