mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-25 19:00:45 +01:00
fix
This commit is contained in:
parent
12b114ba69
commit
cdad5ab799
@ -595,7 +595,13 @@ class BackgroundPush {
|
|||||||
final title = l10n.unreadMessages(room.notificationCount);
|
final title = l10n.unreadMessages(room.notificationCount);
|
||||||
|
|
||||||
// Calculate the body
|
// Calculate the body
|
||||||
final body = event?.plaintextBody ?? l10n.openAppToReadMessages;
|
final body = event.getLocalizedBody(
|
||||||
|
MatrixLocals(L10n.of(context)),
|
||||||
|
withSenderNamePrefix: !room.isDirectChat,
|
||||||
|
plaintextBody: true,
|
||||||
|
hideReply: true,
|
||||||
|
hideEdit: true,
|
||||||
|
);
|
||||||
|
|
||||||
// The person object for the android message style notification
|
// The person object for the android message style notification
|
||||||
final avatar = room.avatar == null
|
final avatar = room.avatar == null
|
||||||
|
@ -268,7 +268,12 @@ class ChatListItem extends StatelessWidget {
|
|||||||
: Text(
|
: Text(
|
||||||
room.membership == Membership.invite
|
room.membership == Membership.invite
|
||||||
? L10n.of(context).youAreInvitedToThisChat
|
? L10n.of(context).youAreInvitedToThisChat
|
||||||
: room.lastEvent?.plaintextBody,
|
: room.lastEvent?.getLocalizedBody(
|
||||||
|
MatrixLocals(L10n.of(context)),
|
||||||
|
hideReply: true,
|
||||||
|
hideEdit: true,
|
||||||
|
plaintextBody: true,
|
||||||
|
),
|
||||||
softWrap: false,
|
softWrap: false,
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
|
@ -221,6 +221,9 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||||||
MatrixLocals(L10n.of(widget.context)),
|
MatrixLocals(L10n.of(widget.context)),
|
||||||
withSenderNamePrefix:
|
withSenderNamePrefix:
|
||||||
!room.isDirectChat || room.lastEvent.senderId == client.userID,
|
!room.isDirectChat || room.lastEvent.senderId == client.userID,
|
||||||
|
plaintextBody: true,
|
||||||
|
hideReply: true,
|
||||||
|
hideEdit: true,
|
||||||
);
|
);
|
||||||
final icon = event.sender.avatarUrl?.getThumbnail(client,
|
final icon = event.sender.avatarUrl?.getThumbnail(client,
|
||||||
width: 64, height: 64, method: ThumbnailMethod.crop) ??
|
width: 64, height: 64, method: ThumbnailMethod.crop) ??
|
||||||
|
Loading…
x
Reference in New Issue
Block a user