Skip to content

hunted down a bug with Delete #57

@unlightednetting

Description

@unlightednetting

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions