design: Nicer display notification short texts

This commit is contained in:
Christian Pauly 2022-10-05 15:50:39 +02:00
commit 5a74319b19
2 changed files with 16 additions and 14 deletions

View file

@ -141,14 +141,16 @@ Future<void> _tryPushHelper(
final matrixLocals = MatrixLocals(l10n);
// Calculate the body
final body = await event.calcLocalizedBody(
matrixLocals,
plaintextBody: true,
withSenderNamePrefix: false,
hideReply: true,
hideEdit: true,
removeMarkdown: true,
);
final body = event.type == EventTypes.Encrypted
? l10n.newMessageInFluffyChat
: await event.calcLocalizedBody(
matrixLocals,
plaintextBody: true,
withSenderNamePrefix: false,
hideReply: true,
hideEdit: true,
removeMarkdown: true,
);
// The person object for the android message style notification
final avatar = event.room.avatar