GetStream / stream-chat-react

React Chat SDK ➜ Stream Chat 💬
https://getstream.io/chat/sdk/react/
Other
702 stars 273 forks source link

Integrate react-virtuoso autoscrollToBottom to handle image loading #1650

Closed petyosi closed 2 years ago

petyosi commented 2 years ago

Motivation In a timeline with loading images without a specified size, the virtualized message list does not account for the increased space, causing the list to stop "following" the conversation.

We will solve that eventually with explicit image sizes coming from our backend. But for now, I've exposed this method that allows the list to "catch up" on increased sizes.

Acceptance Criteria A timeline with images without fixed sizes should load correctly at the bottom and should scroll to the bottom if a message with an image attachment is received.

MartinCupela commented 2 years ago

fixed with release v9.2.0