fix: Empty timeline crashing
This commit is contained in:
parent
1a86ef33ca
commit
6fa50beeab
1 changed files with 3 additions and 1 deletions
|
|
@ -79,7 +79,9 @@ class ChatController extends State<Chat> {
|
|||
|
||||
String pendingText = '';
|
||||
|
||||
bool get canLoadMore => timeline.events.last.type != EventTypes.RoomCreate;
|
||||
bool get canLoadMore =>
|
||||
timeline.events.isEmpty ||
|
||||
timeline.events.last.type != EventTypes.RoomCreate;
|
||||
|
||||
bool showEmojiPicker = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue