Skip to content

Commit

Permalink
Merge pull request #268 from pangeachat/event-index-hotfix
Browse files Browse the repository at this point in the history
fix for event list index so next event / previous event don't get mes…
  • Loading branch information
ggurdin authored May 29, 2024
2 parents 6301394 + 69d1b7f commit a0b358f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/pages/chat/chat_event_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,12 @@ class ChatEventList extends StatelessWidget {
}
return const SizedBox.shrink();
}
i--;

// The message at this index:
// #Pangea
// final event = events[i];
final event = events[i - 1];
// i--;
i = i - 2;
// Pangea#

final event = events[i];
final animateIn = animateInEventIndex != null &&
controller.timeline!.events.length > animateInEventIndex &&
event == controller.timeline!.events[animateInEventIndex];
Expand Down

0 comments on commit a0b358f

Please sign in to comment.