From 20773d5d1e3864462535528f43f17f8fe010ae39 Mon Sep 17 00:00:00 2001 From: Rainer Wocher Date: Mon, 21 Jun 2021 13:53:29 +0200 Subject: [PATCH 1/7] fix #48 the _source must update also or foundry replace all. --- README.md | 2 +- tabbed-chatlog.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4bb95b9..f4d95e8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![](https://img.shields.io/badge/Foundry-v0.8.6-informational) +![](https://img.shields.io/badge/Foundry-v0.8.7-informational) [![](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-%243-orange)](https://www.buymeacoffee.com/T2tZvWJ) diff --git a/tabbed-chatlog.js b/tabbed-chatlog.js index 55526b2..b05a6e6 100644 --- a/tabbed-chatlog.js +++ b/tabbed-chatlog.js @@ -275,8 +275,12 @@ Hooks.on("preCreateChatMessage", (chatMessage, content) => { if (game.settings.get('tabbed-chatlog', 'icChatInOoc')) { if (currentTab == "ooc") { if (chatMessage.data.type == CONST.CHAT_MESSAGE_TYPES.IC) { + chatMessage.data._source.type = CONST.CHAT_MESSAGE_TYPES.OOC; chatMessage.data.type = CONST.CHAT_MESSAGE_TYPES.OOC; + content.type = CONST.CHAT_MESSAGE_TYPES.OOC + delete (content.speaker); delete (chatMessage.data.speaker); + delete (chatMessage.data._source.speaker); console.log(chatMessage); } } From 0d0ec3492a3bdb36a9878c4042f894f5e15e3561 Mon Sep 17 00:00:00 2001 From: Rainer Wocher Date: Mon, 21 Jun 2021 13:58:33 +0200 Subject: [PATCH 2/7] Update Version for new release --- module.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.json b/module.json index 113c969..6b6f0d1 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "tabbed-chatlog", "title": "Tabbed Chatlog", "description": "Splits the Chatlog into In Character (per scene), Rolls (per scene), and Out of Character (global).", - "version": "1.6.1", + "version": "1.6.2", "minimumCoreVersion": "0.8.0", "compatibleCoreVersion": "0.8.7", "author": "Cody Swendrowski ", From 36bbd16c2818aea2cf12af5240d6394889836163 Mon Sep 17 00:00:00 2001 From: Rainer Wocher Date: Mon, 21 Jun 2021 14:01:35 +0200 Subject: [PATCH 3/7] fix download old version --- module.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.json b/module.json index 6b6f0d1..437bee5 100644 --- a/module.json +++ b/module.json @@ -42,5 +42,5 @@ ], "url": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog", "manifest": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog/releases/download/latest/module.json", - "download": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog/releases/download/1.6.1/module.zip" + "download": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog/releases/download/latest/module.zip" } \ No newline at end of file From 13d5e87e613fec590f208a4514293c5566427f00 Mon Sep 17 00:00:00 2001 From: Rainer Wocher Date: Mon, 21 Jun 2021 14:04:07 +0200 Subject: [PATCH 4/7] new version for repo test --- module.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.json b/module.json index 437bee5..d45f7ba 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "tabbed-chatlog", "title": "Tabbed Chatlog", "description": "Splits the Chatlog into In Character (per scene), Rolls (per scene), and Out of Character (global).", - "version": "1.6.2", + "version": "1.6.3", "minimumCoreVersion": "0.8.0", "compatibleCoreVersion": "0.8.7", "author": "Cody Swendrowski ", From 5f21d73b17d2d8a1f2069c7a49e9556810c7cd20 Mon Sep 17 00:00:00 2001 From: Rainer Wocher Date: Sat, 10 Jul 2021 08:21:01 +0200 Subject: [PATCH 5/7] fix whisper do not send to webhook --- tabbed-chatlog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabbed-chatlog.js b/tabbed-chatlog.js index b05a6e6..24e4475 100644 --- a/tabbed-chatlog.js +++ b/tabbed-chatlog.js @@ -315,7 +315,7 @@ Hooks.on("preCreateChatMessage", (chatMessage, content) => { img = game.data.addresses.remote + "/" + img; - if (!chatMessage.whisper?.length) { + if (!chatMessage.data.whisper?.length) { let message = chatMessage.data.content; if (game.modules.get("polyglot")?.active) { import("../polyglot/src/polyglot.js"); @@ -344,7 +344,7 @@ Hooks.on("preCreateChatMessage", (chatMessage, content) => { let img = game.users.get(chatMessage.user.id).avatar; img = game.data.addresses.remote + "/" + img; - if (!chatMessage.whisper?.length) { + if (!chatMessage.data.whisper?.length) { let message = chatMessage.data.content; if (game.modules.get("polyglot")?.active) { import("../polyglot/src/polyglot.js"); From d27319b0ea620b7b7e615493814c85bc81fd99e8 Mon Sep 17 00:00:00 2001 From: Rainer Wocher Date: Sat, 10 Jul 2021 08:22:38 +0200 Subject: [PATCH 6/7] link to the version file in archiv --- module.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.json b/module.json index d45f7ba..147fa0b 100644 --- a/module.json +++ b/module.json @@ -42,5 +42,5 @@ ], "url": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog", "manifest": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog/releases/download/latest/module.json", - "download": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog/releases/download/latest/module.zip" + "download": "https://github.com/cswendrowski/FoundryVTT-tabbed-chatlog/releases/download/1.6.3/module.zip" } \ No newline at end of file From e32aabe59004f76498fb0d43d0952bbe05ed1377 Mon Sep 17 00:00:00 2001 From: Rainer Wocher Date: Sat, 10 Jul 2021 08:31:35 +0200 Subject: [PATCH 7/7] Version Upgrade --- README.md | 2 +- module.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f4d95e8..269f03e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![](https://img.shields.io/badge/Foundry-v0.8.7-informational) +![](https://img.shields.io/badge/Foundry-v0.8.8-informational) [![](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-%243-orange)](https://www.buymeacoffee.com/T2tZvWJ) diff --git a/module.json b/module.json index 147fa0b..95612d2 100644 --- a/module.json +++ b/module.json @@ -4,7 +4,7 @@ "description": "Splits the Chatlog into In Character (per scene), Rolls (per scene), and Out of Character (global).", "version": "1.6.3", "minimumCoreVersion": "0.8.0", - "compatibleCoreVersion": "0.8.7", + "compatibleCoreVersion": "0.8.8", "author": "Cody Swendrowski ", "esmodules": [ "./tabbed-chatlog.js"