peertube-plugin-livechat
peertube-plugin-livechat copied to clipboard
Deleted message are shown when loading history
Describe the bug
When using the builtin Prosody mode, deleted messages are not deleted in chat history.
To Reproduce Steps to reproduce the behavior:
- Builtin Prosody mode
- Delete a message
- Open a private browser window and open the chat
- The message is still here
Expected behavior
It seems that messages are not marked as deleted in the room history. So when loading the chat content from the history, deleted messages are shown... It should not.
Note to myself: I think I remember seeing some error logs a long time ago. Something like «cannot mark message as deleted in history when storing history in files».
Server (please complete the following information):
- peertube-plugin-livechat version: 4.0.2
See comments here: https://github.com/JohnXLivingston/peertube-plugin-livechat/blob/1ea9feaab4088071a9fe2df724e57f4387b3d4fc/server/lib/prosody/config/content.ts#L232-L235
Available in Prosody 0.12. I should try to use debian bullseye-backports to generated the Prosody AppImage (livechat v6).
Fixed by https://github.com/JohnXLivingston/peertube-plugin-livechat/commit/b5901739a94d05f93c679a25c788b7f7157a6bd2