Scrolls to correct message
This commit is contained in:
parent
e59678648d
commit
2f9446fb80
1 changed files with 7 additions and 1 deletions
|
|
@ -1109,7 +1109,13 @@ class ChatController extends State<ChatPageWithRoom>
|
|||
}
|
||||
|
||||
void scrollToEventId(String eventId) async {
|
||||
final eventIndex = timeline!.events.indexWhere((e) => e.eventId == eventId);
|
||||
// #Pangea
|
||||
// final eventIndex = timeline!.events.indexWhere((e) => e.eventId == eventId);
|
||||
final eventIndex = timeline!.events
|
||||
.where((event) => event.isVisibleInGui)
|
||||
.toList()
|
||||
.indexWhere((e) => e.eventId == eventId);
|
||||
// Pangea#
|
||||
if (eventIndex == -1) {
|
||||
setState(() {
|
||||
timeline = null;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue