design: Nicer display notification short texts
This commit is contained in:
parent
6f36200e0b
commit
5a74319b19
2 changed files with 16 additions and 14 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue