Skip to content

Conversation

@deepak0x
Copy link
Contributor

@deepak0x deepak0x commented Jan 26, 2026

This PR fixes an issue where the "Room Archived" warning banner was shown for all channels in the Room Information panel, even when the channel was not archived.

The fix ensures that the archived status is correctly fetched from the backend and stored in state, so the banner is displayed only when a channel is actually archived.


Changes

packages/react/src/views/RoomInformation/RoomInformation.js

  • Updated the component to read isChannelArchived from the store.
  • Wrapped the ArchivedRoomInfo UI block with a conditional check so it renders only for archived channels.

packages/react/src/views/ChatHeader/ChatHeader.js

  • Updated getChannelInfo to correctly read the archived field from the room data response.
  • Dispatches setIsChannelArchived(true/false) based on the actual channel status.

Issue

Closes #1109


How to Test

  1. Launch Embedded Chat.
  2. Open an active, unarchived public channel (for example, #general).
  3. Click the Room Information (info) icon in the header.

Optional Test

  1. Archive a channel in Rocket.Chat.
  2. Open the same channel in Embedded Chat.

Screenshots

After
Screenshot from 2026-01-26 18-48-49

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.

Bug: Incorrect "Room Archived" Status

1 participant