-
-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi, I just wanted to contribute to a small fix, despite not knowing much about github
I downloaded stream-chat-0.3.3 from here yesterday, and noticed that Deleted Messages don't remove themselves.
I had a peek into chat.html, and I did find out that code should support this, so I opened the file and found the bug.
It seems at some point, the Event Data changed the name structure, from targetMessageID to just plain messageID
In my file, this is at line 1275,
} else if (wsdata.event.type === 'ChatMessageDeleted') { console.debug(['Message deleted', wsdata]); remove_messages_by_message_id(wsdata.data.targetMessageId);
changing the final line to wsdata.data.messageID cleared up the problem
Thank you for the app and the work you do