mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
fix: Empty timelines crashing the room view
This commit is contained in:
parent
f8475a4a3b
commit
2c6b962c37
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user