RocketChat / RocketChat/EmbeddedChat

Deleting a message causes the chat feed to jump to the bottom

Open
#1,145 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
165
Forks
381
Avg merge
1d 2h
Merged PRs (30d)
1

Description

Description:

The chat feed behaves unstably when a message is deleted. The feed position jumps to the bottom of the chat immediately after a deletion, causing the user to lose their place in the conversation.

Steps to reproduce:
  1. Scroll up to view older messages.
  2. Click the Delete button on any message.
  3. Observe the feed.
Expected behavior:

The message should be removed, and the feed position should remain stable, keeping the user at the same point in the conversation chat.

Actual behavior:

The chat feed automatically jumps all the way to the bottom immediately after the message is deleted.

https://github.com/user-attachments/assets/7bb65f65-12ff-471f-bda3-623237ba60ae

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue by scrolling up in the chat feed and deleting a message. Trace the message deletion and feed update entry points; done means the message is removed without moving the user from their current place in the conversation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.