mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-27 14:59:29 +01:00
design: Nicer display notification short texts
This commit is contained in:
parent
462fcea504
commit
90e257704a
@ -1458,7 +1458,7 @@
|
|||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"newMessageInFluffyChat": "New message in FluffyChat",
|
"newMessageInFluffyChat": "💬 New message in FluffyChat",
|
||||||
"@newMessageInFluffyChat": {
|
"@newMessageInFluffyChat": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
@ -2068,35 +2068,35 @@
|
|||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"sentAFile": "{username} sent a file",
|
"sentAFile": "📁 {username} sent a file",
|
||||||
"@sentAFile": {
|
"@sentAFile": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"username": {}
|
"username": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sentAnAudio": "{username} sent an audio",
|
"sentAnAudio": "🎤 {username} sent an audio",
|
||||||
"@sentAnAudio": {
|
"@sentAnAudio": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"username": {}
|
"username": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sentAPicture": "{username} sent a picture",
|
"sentAPicture": "🖼️ {username} sent a picture",
|
||||||
"@sentAPicture": {
|
"@sentAPicture": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"username": {}
|
"username": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sentASticker": "{username} sent a sticker",
|
"sentASticker": "😊 {username} sent a sticker",
|
||||||
"@sentASticker": {
|
"@sentASticker": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"username": {}
|
"username": {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sentAVideo": "{username} sent a video",
|
"sentAVideo": "🎥 {username} sent a video",
|
||||||
"@sentAVideo": {
|
"@sentAVideo": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
|
@ -141,14 +141,16 @@ Future<void> _tryPushHelper(
|
|||||||
final matrixLocals = MatrixLocals(l10n);
|
final matrixLocals = MatrixLocals(l10n);
|
||||||
|
|
||||||
// Calculate the body
|
// Calculate the body
|
||||||
final body = await event.calcLocalizedBody(
|
final body = event.type == EventTypes.Encrypted
|
||||||
matrixLocals,
|
? l10n.newMessageInFluffyChat
|
||||||
plaintextBody: true,
|
: await event.calcLocalizedBody(
|
||||||
withSenderNamePrefix: false,
|
matrixLocals,
|
||||||
hideReply: true,
|
plaintextBody: true,
|
||||||
hideEdit: true,
|
withSenderNamePrefix: false,
|
||||||
removeMarkdown: true,
|
hideReply: true,
|
||||||
);
|
hideEdit: true,
|
||||||
|
removeMarkdown: true,
|
||||||
|
);
|
||||||
|
|
||||||
// The person object for the android message style notification
|
// The person object for the android message style notification
|
||||||
final avatar = event.room.avatar
|
final avatar = event.room.avatar
|
||||||
|
Loading…
Reference in New Issue
Block a user