2
0
mirror of https://gitlab.com/famedly/fluffychat.git synced 2025-06-12 12:57:23 +02:00

fix: Crash when there is no prev message

This commit is contained in:
Krille Fear 2021-11-11 18:05:12 +01:00
parent a13b37948a
commit 563a67eabd

@ -270,11 +270,12 @@ class ChatListItem extends StatelessWidget {
room.membership == Membership.invite
? L10n.of(context).youAreInvitedToThisChat
: room.lastEvent?.getLocalizedBody(
MatrixLocals(L10n.of(context)),
hideReply: true,
hideEdit: true,
plaintextBody: true,
),
MatrixLocals(L10n.of(context)),
hideReply: true,
hideEdit: true,
plaintextBody: true,
) ??
L10n.of(context).emptyChat,
softWrap: false,
maxLines: 1,
overflow: TextOverflow.ellipsis,