fix: Empty timelines crashing the room view

This commit is contained in:
Sorunome 2021-08-15 19:44:38 +02:00
commit 3c57e7349c

View file

@ -305,9 +305,12 @@ class ChatView extends StatelessWidget {
milliseconds: 300), milliseconds: 300),
alignment: controller alignment: controller
.filteredEvents .filteredEvents
.first .isNotEmpty &&
.senderId == controller
client.userID .filteredEvents
.first
.senderId ==
client.userID
? Alignment.topRight ? Alignment.topRight
: Alignment.topLeft, : Alignment.topLeft,
padding: EdgeInsets.only( padding: EdgeInsets.only(