Merge branch 'soru/empty-room' into 'main'
fix: Empty timelines crashing the room view See merge request famedly/fluffychat!488
This commit is contained in:
commit
128b717e38
1 changed files with 6 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue