stream-chat-react
stream-chat-react copied to clipboard
When jumped to quoted message its thread is kept scrolled to the bottom on open
🎯 Goal
- When thread is open no additional pagination requests are executed for the query message list
- 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:
- The thread is scrolled to the bottom on open
- 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