Skip to content

Fix/auto scroll latest messages#171

Open
ronak-ravtode wants to merge 2 commits into
0rigin-c0de:mainfrom
ronak-ravtode:fix/auto-scroll-latest-messages
Open

Fix/auto scroll latest messages#171
ronak-ravtode wants to merge 2 commits into
0rigin-c0de:mainfrom
ronak-ravtode:fix/auto-scroll-latest-messages

Conversation

@ronak-ravtode
Copy link
Copy Markdown
Contributor

@ronak-ravtode ronak-ravtode commented May 25, 2026

Fix: Chat auto-scroll to latest messages and hide scrollbar

Issue : #108

Changes

  • ValidChat.jsx — Added useRef + auto-scroll useEffect to scroll to latest messages when channel loads or new messages arrive. Added scrollbar-hide class.
  • DirectMessage.jsx — Same auto-scroll fix for DM chat view. Added scrollbar-hide class.
  • index.css — Added .scrollbar-hide utility class to hide scrollbars while keeping scroll functionality.

Bug Fixed

The chat view was showing the oldest messages first at the top when opening a channel, requiring manual scroll-down. Now it auto-scrolls to the bottom to show the latest messages, matching the expected WhatsApp-like behavior.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 25, 2026

@ronak-ravtode is attempting to deploy a commit to the Sunil Kumar's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant