fix: show timestamp on system messages#7148
fix: show timestamp on system messages#7148deepak0x wants to merge 1 commit intoRocketChat:developfrom
Conversation
System messages (user added, user removed, etc.) take an early return in the isInfo rendering path that skips the MessageTime component. Regular messages show time through the User component header, but info messages never hit that branch.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (5)**/*.{js,jsx,ts,tsx,json}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{js,jsx,ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
app/containers/**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{js,ts,jsx,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🔇 Additional comments (1)
WalkthroughAdded rendering of the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
System messages (user added, user removed, room name changed, etc.) don't display a timestamp on mobile, even though the web client shows one. This is because the
isInforendering path inMessage.tsxtakes an early return that skips theMessageTimecomponent entirely. Regular messages get their timestamp through theUsercomponent header, but info messages never reach that code path.Added
<MessageTime>to the info message block so system messages show their timestamp alongside the message text.Issue(s)
Closes #3190
How to test or reproduce
Screenshots
N/A — will add if requested.
Types of changes
Checklist
Summary by CodeRabbit