Skip to content

Commit

Permalink
Fix scrolling not loading messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vyPal committed Nov 20, 2024
1 parent 0bc3f99 commit 33b2be6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import 'package:eduapge2/create_message.dart';
import 'package:eduapge2/main.dart';
import 'package:eduapge2/message.dart';
import 'package:flutter/material.dart';
import 'package:flutter_session_manager/flutter_session_manager.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:flutter_session_manager/flutter_session_manager.dart';
import 'package:html_unescape/html_unescape.dart';

class MessagesPage extends StatefulWidget {
Expand Down Expand Up @@ -63,6 +63,8 @@ class TimeTablePageState extends BaseState<MessagesPage> {
_scrollController.position.maxScrollExtent - 200) {
_isFetching = true;
await EP2Data.getInstance().timeline.loadOlderMessages();
messages =
getMessages(EP2Data.getInstance().timeline.items.values.toList());

Check warning on line 67 in lib/messages.dart

View check run for this annotation

Codecov / codecov/patch

lib/messages.dart#L66-L67

Added lines #L66 - L67 were not covered by tests
_isFetching = false;
}
});
Expand Down

0 comments on commit 33b2be6

Please sign in to comment.