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

When jumped to quoted message its thread is kept scrolled to the bottom on open

Open MartinCupela opened this issue 2 years ago • 0 comments

🎯 Goal

  1. When thread is open no additional pagination requests are executed for the query message list
  2. When thread is open Thread's message list is scrolled to the bottom

The solution will probably need to refactor the Channel state instead of adding the state for jumped-to-message.

Acceptance criteria

User scenarios

Prerequisite: the message list scroll height inside the thread has to be greater than the height of its parent forcing the scrolling behavior

  • [ ] User click quoted message that does not have to be loaded by additional HTTP request -> opens its thread
  • [ ] User click quoted message that has to be loaded by additional HTTP request -> opens its thread
Expected behavior:
  1. The thread is scrolled to the bottom on open
  2. The pagination requests do not take place
Tests
E2E tests:

All the above scenarios have to be covered

  • [ ] non-virtualized message list
  • [ ] virtualized message list
Unit tests
  • [ ] All tests have to be adjusted to the refactor + added new where needed

MartinCupela avatar Jun 15 '22 22:06 MartinCupela