fix
This commit is contained in:
parent
eb9fa05979
commit
e70f123182
3 changed files with 16 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -221,6 +221,9 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
MatrixLocals(L10n.of(widget.context)),
|
||||
withSenderNamePrefix:
|
||||
!room.isDirectChat || room.lastEvent.senderId == client.userID,
|
||||
plaintextBody: true,
|
||||
hideReply: true,
|
||||
hideEdit: true,
|
||||
);
|
||||
final icon = event.sender.avatarUrl?.getThumbnail(client,
|
||||
width: 64, height: 64, method: ThumbnailMethod.crop) ??
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue