RocketChat / EmbeddedChat

An easy to use full-stack component (ReactJS) embedding Rocket.Chat into your webapp
https://www.npmjs.com/package/@embeddedchat/react
107 stars 214 forks source link

[BUG]: Sidebar can't open when there are no messages in the channel #558

Closed Spiral-Memory closed 2 months ago

Spiral-Memory commented 2 months ago

Description:

The sidebar in EC can't open when there are no messages in the channel, which is incorrect, as viewing room info or members is still feasible. Additionally, when one message is sent, it stacks on top of each other.

Steps to reproduce:

  1. Set up Embedded Chat.
  2. Prune all messages in the channel.
  3. Try to open sidebars.

Expected behavior:

The sidebar should open even if there are no messages in the channel.

Actual behavior:

The sidebar can't open when there are no messages in the channel.

https://github.com/RocketChat/EmbeddedChat/assets/78961432/1ffd179f-317b-4314-a253-54b02093142b