Skip to content

feat: add clickable timestamp to quoted messages#1089

Merged
Spiral-Memory merged 2 commits intoRocketChat:developfrom
Khizarshah01:fix/quote-time-clickable
Mar 13, 2026
Merged

feat: add clickable timestamp to quoted messages#1089
Spiral-Memory merged 2 commits intoRocketChat:developfrom
Khizarshah01:fix/quote-time-clickable

Conversation

@Khizarshah01
Copy link
Copy Markdown
Contributor

Add clickable timestamp to quoted messages

  • Display a timestamp next to the quoted message author
  • Make the timestamp clickable to navigate to the original message

Fixes #1088

Video/Screenshots

Screencast.from.2026-01-20.00-33-38.mp4

Technical notes

  • This PR adds navigation to the original quoted message by locating the message element in the DOM using its message ID and scrolling to it when available.

  • Navigation works only when the original message is already loaded and rendered in the DOM

  • I explored whether there is an existing way to navigate to or load messages by ID in EmbeddedChat, but couldn’t find a suitable mechanism. If there is a recommended approach, I’d be happy to update the implementation

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-<pr_number> after approval. Contributors are requested to replace <pr_number> with the actual PR number.

@Spiral-Memory
Copy link
Copy Markdown
Collaborator

It's a great improvement, but currently it will not work properly if the message is not in the DOM. We need to implement proper virtualization of the message chat to prevent jumping behaviors. @deepak0x is working on it, so please coordinate with him to achieve this.

Meanwhile, I'll review this PR. It will at least work when the message is loaded in the DOM.

Copy link
Copy Markdown
Collaborator

@Spiral-Memory Spiral-Memory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Khizarshah01
Copy link
Copy Markdown
Contributor Author

Since #1111 introduces react-virtuoso, I can adapt the quote navigation to use scrollToIndex once merged

@Spiral-Memory Spiral-Memory merged commit daf291d into RocketChat:develop Mar 13, 2026
3 checks passed
github-actions Bot added a commit that referenced this pull request Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quoted messages do not provide a way to navigate to the original message

2 participants