fix replying to wrong message

when new message arrives during the gesture
This commit is contained in:
Inex Code 2020-10-05 01:28:34 +00:00
parent 20efc3dbb6
commit 3ee20eb07c

View file

@ -677,7 +677,8 @@ class _ChatState extends State<_Chat> {
index: i - 1,
controller: _scrollController,
child: Swipeable(
key: ValueKey(i - 1),
key: ValueKey(
filteredEvents[i - 1].eventId),
background: Container(
color: Theme.of(context)
.primaryColor