stream-chat-react icon indicating copy to clipboard operation
stream-chat-react copied to clipboard

bug: thread paginates over all its messages when open

Open MartinCupela opened this issue 3 years ago • 1 comments

Describe the bug

When a thread is open, it is not scrolled to the bottom as main message list is. Because of that more HTTP requests are fired in order to retrieve the previous page of replies. This recursively repeats until the whole thread history is retrieved.

To Reproduce

  1. Create a thread with large number of messages.
  2. Reload the page and open the thread
  3. Thread starts to load all the thread messages

Expected behavior

  1. Thread should be scrolled at the bottom when open
  2. Only one HTTP request to /replies should be executed on thread open

Screenshots

If applicable, add screenshots to help explain your problem.

Package version

  • stream-chat-react: 8.1.2
  • stream-chat-js: 6.5.0

MartinCupela avatar May 15 '22 18:05 MartinCupela

close after fixing https://github.com/GetStream/stream-chat-react/issues/1749

MartinCupela avatar Sep 13 '22 08:09 MartinCupela