-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Problem
When attending a dispute and exchanging messages with the buyer/seller, the chat works correctly in real-time showing the latest messages as they are sent.
However, if you navigate away from the Disputes Management tab and then return to it, the chat view only shows the first messages and does not scroll to the most recent ones. The user has to manually scroll down to see the latest conversation.
Steps to Reproduce
- Open a dispute in Disputes Management
- Exchange several messages with the counterparty (e.g., 7+ messages)
- Navigate to a different tab in Mostrix
- Return to the Disputes Management tab
- Observe that the chat shows only the first messages, not scrolled to the bottom
Expected Behavior
When returning to the Disputes Management tab, the chat should automatically scroll to the most recent messages (bottom of the conversation).
Suggested Fix
In the dispute chat widget, add a scroll-to-bottom behavior when:
- The tab becomes visible again (focus/visibility change)
- The dispute is selected/reloaded
This could be implemented with a ScrollController that calls jumpTo(maxScrollExtent) or animateTo(maxScrollExtent) when the widget regains focus or is rebuilt.