Describe the issue
When the Damage Log module is enabled, as soon as a damage log message has been added to its own tab, the DF chat merge stops working. This bug was initially raised as an issue on the Damage Log module, but I believe the fix is needed in DF Chat Enhancements (see suggested fix below).
To Reproduce
Steps to reproduce the behavior:
Enable DF Chat Enhancements and the Chat Merge feature
Enable Damage Log
Clear the chat log
Send a few attacks / damage rolls to the chat and see that they merge
Apply some damage to an actor
Send some more attacks / damage rolls to the chat and see that they no longer merge
Expected behavior
The messages should continue to merge after Damage Log has added a message to its own tab.
Module DF Chat Enhancements v4.1.0
Describe the issue When the Damage Log module is enabled, as soon as a damage log message has been added to its own tab, the DF chat merge stops working. This bug was initially raised as an issue on the Damage Log module, but I believe the fix is needed in DF Chat Enhancements (see suggested fix below).
To Reproduce Steps to reproduce the behavior:
Expected behavior The messages should continue to merge after Damage Log has added a message to its own tab.
Fix The issue is on line 192 of chat-merge.ts https://github.com/flamewave000/dragonflagon-fvtt/blob/e9e9a38b7092ebd02912a8ec76c7ce0f004fa16d/df-chat-enhance/src/merge/chat-merge.ts#L192 The jQuery selector is finding all
li.chat-message
s across the whole of the document, which includes the Damage Log entries, which are part of a different list. By changing the selector to#chat-log li.chat-message
the issue goes away.