Skip to content

Bug: Thread UI remains open after parent message is deleted (State Leak) #1080

Description

@deepak0x

A frontend state management bug exists where the Thread View remains open and displays stale data even after its parent message has been deleted from the chat.

While the messageStore correctly removes the deleted message from the main message list, it fails to synchronize thread-specific state. As a result, thread-related state continues to reference a message that no longer exists.


Observed Behavior

  • The parent message is removed from the main chat message list.
  • The Thread Pane remains open.
  • The Thread View continues to display a stale copy of the deleted parent message.
  • The application enters an inconsistent UI state where a thread is shown for a non-existent message.

Screenshots

Rocket chat web
Image

Embedded chat
Image

Expected Behavior

When a parent message is deleted:

  • Any active thread associated with that message should automatically close.
  • Thread-related state should be cleared from the store.
  • The UI should return to the normal chat view without an open thread.

Steps to Reproduce

  1. Open the EmbeddedChat application.
  2. Send a new message or select an existing message.
  3. Open the Thread View for that message.
  4. Delete the parent message (from EmbeddedChat or another client).
  5. Observe the UI state.

Result:

  • The message disappears from the main chat list.
  • The Thread Pane remains open with stale data.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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