mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-18 02:42:34 +01:00
fix: Crash when there is no prev message
This commit is contained in:
parent
a13b37948a
commit
563a67eabd
@ -270,11 +270,12 @@ class ChatListItem extends StatelessWidget {
|
|||||||
room.membership == Membership.invite
|
room.membership == Membership.invite
|
||||||
? L10n.of(context).youAreInvitedToThisChat
|
? L10n.of(context).youAreInvitedToThisChat
|
||||||
: room.lastEvent?.getLocalizedBody(
|
: room.lastEvent?.getLocalizedBody(
|
||||||
MatrixLocals(L10n.of(context)),
|
MatrixLocals(L10n.of(context)),
|
||||||
hideReply: true,
|
hideReply: true,
|
||||||
hideEdit: true,
|
hideEdit: true,
|
||||||
plaintextBody: true,
|
plaintextBody: true,
|
||||||
),
|
) ??
|
||||||
|
L10n.of(context).emptyChat,
|
||||||
softWrap: false,
|
softWrap: false,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
|
Loading…
Reference in New Issue
Block a user