mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-17 14:30:40 +01:00
fix: Empty timeline crashing
This commit is contained in:
parent
053f167bff
commit
1b01cdc379
@ -79,7 +79,9 @@ class ChatController extends State<Chat> {
|
|||||||
|
|
||||||
String pendingText = '';
|
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;
|
bool showEmojiPicker = false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user