fix: Empty timeline crashing

This commit is contained in:
Sorunome 2021-09-06 20:16:01 +02:00
parent 053f167bff
commit 1b01cdc379
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C

View File

@ -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;