Summarize location, image and GIF messages in notifications

Notification bodies now use the chat's parsers to show a localized
summary for shared locations (m: markers), channel images, GIFs and
reactions instead of the raw payload. The marker parser moves out of the
map screen into helpers/marker_message.dart so the service can use it.
This commit is contained in:
zjs81 committed 2026-10-24 21:01:06 -07:00
1 parent ed5884e252
commit caf20b4415
28 files changed
+575 -36

No files matched your search

+19
View File
@@ -2711,6 +2711,25 @@
}
},
"notification_receivedNewMessage": "Received new message",
"notification_sharedLocation": "Shared a location",
"notification_sharedLocationNamed": "Shared a location: {label}",
"@notification_sharedLocationNamed": {
"placeholders": {
"label": {
"type": "String"
}
}
},
"notification_reacted": "Reacted {emoji}",
"@notification_reacted": {
"placeholders": {
"emoji": {
"type": "String"
}
}
},
"notification_sentGif": "Sent a GIF",
"notification_sentImage": "Sent an image",
"notification_actionReply": "Reply",
"notification_actionMarkRead": "Mark as read",
"notification_actionMuteChannel": "Mute channel",
+30
View File
@@ -8138,6 +8138,36 @@ abstract class AppLocalizations {
/// **'Received new message'**
String get notification_receivedNewMessage;
/// No description provided for @notification_sharedLocation.
///
/// In en, this message translates to:
/// **'Shared a location'**
String get notification_sharedLocation;
/// No description provided for @notification_sharedLocationNamed.
///
/// In en, this message translates to:
/// **'Shared a location: {label}'**
String notification_sharedLocationNamed(String label);
/// No description provided for @notification_reacted.
///
/// In en, this message translates to:
/// **'Reacted {emoji}'**
String notification_reacted(String emoji);
/// No description provided for @notification_sentGif.
///
/// In en, this message translates to:
/// **'Sent a GIF'**
String get notification_sentGif;
/// No description provided for @notification_sentImage.
///
/// In en, this message translates to:
/// **'Sent an image'**
String get notification_sentImage;
/// No description provided for @notification_actionReply.
///
/// In en, this message translates to:
+19
View File
@@ -4768,6 +4768,25 @@ class AppLocalizationsBg extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Получено ново съобщение';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Отговори';
+19
View File
@@ -4779,6 +4779,25 @@ class AppLocalizationsDe extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Neue Nachricht empfangen';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Antworten';
+19
View File
@@ -4703,6 +4703,25 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Received new message';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Reply';
+19
View File
@@ -4770,6 +4770,25 @@ class AppLocalizationsEs extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Nuevo mensaje recibido';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Responder';
+19
View File
@@ -4789,6 +4789,25 @@ class AppLocalizationsFr extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Nouveau message reçu';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Répondre';
+19
View File
@@ -4767,6 +4767,25 @@ class AppLocalizationsHu extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Új üzenet érkezett';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Válasz';
+19
View File
@@ -4776,6 +4776,25 @@ class AppLocalizationsIt extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Nuovo messaggio ricevuto';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Rispondi';
+19
View File
@@ -4539,6 +4539,25 @@ class AppLocalizationsJa extends AppLocalizations {
@override
String get notification_receivedNewMessage => '新しいメッセージを受信';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => '返信';
+19
View File
@@ -4550,6 +4550,25 @@ class AppLocalizationsKo extends AppLocalizations {
@override
String get notification_receivedNewMessage => '새로운 메시지를 받았습니다';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => '답장';
+19
View File
@@ -4745,6 +4745,25 @@ class AppLocalizationsNl extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Nieuw bericht ontvangen';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Reageren';
+19
View File
@@ -4802,6 +4802,25 @@ class AppLocalizationsPl extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Otrzymano nową wiadomość';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Odpowiedz';
+19
View File
@@ -4772,6 +4772,25 @@ class AppLocalizationsPt extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Nova mensagem recebida';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Responder';
+19
View File
@@ -4786,6 +4786,25 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Получено новое сообщение';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Ответить';
+19
View File
@@ -4756,6 +4756,25 @@ class AppLocalizationsSk extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Prijatá nová správa';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Odpovedať';
+19
View File
@@ -4757,6 +4757,25 @@ class AppLocalizationsSl extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Prejeto novo sporočilo';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Odgovori';
+19
View File
@@ -4727,6 +4727,25 @@ class AppLocalizationsSv extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Nytt meddelande mottaget';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Svara';
+19
View File
@@ -4785,6 +4785,25 @@ class AppLocalizationsUk extends AppLocalizations {
@override
String get notification_receivedNewMessage => 'Отримано нове повідомлення';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => 'Відповісти';
+19
View File
@@ -4429,6 +4429,25 @@ class AppLocalizationsZh extends AppLocalizations {
@override
String get notification_receivedNewMessage => '收到新消息';
@override
String get notification_sharedLocation => 'Shared a location';
@override
String notification_sharedLocationNamed(String label) {
return 'Shared a location: $label';
}
@override
String notification_reacted(String emoji) {
return 'Reacted $emoji';
}
@override
String get notification_sentGif => 'Sent a GIF';
@override
String get notification_sentImage => 'Sent an image';
@override
String get notification_actionReply => '回复';