Skip to content

[Bug]: Message list key falls back to ${from}-${date}, collides on same-second sends #1277

Description

@danditomaso

apps/web/src/components/PageComponents/Messages/ChannelChat.tsx:149 sets the React key to message.messageId ?? \${message.from}-${message.date}``. Two messages from the same sender within the same second (or same missing messageId) produce identical keys, which React handles by reordering/dropping DOM nodes — visible as duplicated or vanishing messages.

Include a discriminator (index, hash of content) in the fallback, or require a stable messageId upstream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions