This commit is contained in:
Christian Pauly 2021-08-28 18:05:41 +02:00
commit e70f123182
3 changed files with 16 additions and 2 deletions

View file

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