Merge pull request #709 from GetStream/hotfix/messageListView

fix(ui): thread reply scrolling main list
This commit is contained in:
Salvatore Giordano
2021-10-01 12:29:29 +02:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
@@ -1,5 +1,9 @@
## Upcoming
🐞 Fixed
-[[#687]](https://github.com/GetStream/stream-chat-flutter/issues/687): Fix Users losing their place in the conversation after replying in threads.
✅ Added
- Added `MessageInput.customOverlays` property to add custom overlays to the message input.
@@ -1227,8 +1227,9 @@ class _MessageListViewState extends State<MessageListView> {
_bottomPaginationActive = false;
_topPaginationActive = false;
}
if (event.message!.user!.id ==
streamChannel!.channel.client.state.currentUser!.id) {
if (event.message?.parentId == widget.parentMessage?.id &&
event.message!.user!.id ==
streamChannel!.channel.client.state.currentUser!.id) {
WidgetsBinding.instance!.addPostFrameCallback((_) {
_scrollController?.jumpTo(
index: 0,