From 1b3c0e4f6586970e3288f13df95c5612c4fc09f2 Mon Sep 17 00:00:00 2001 From: Romo Date: Thu, 5 Feb 2026 20:19:33 +0100 Subject: [PATCH] fix: image download complete notification shows an extra {file_name} template tag (#25936) * [fix] Image download complete notification shows an extra {file_name} template tag fixes https://github.com/immich-app/immich/issues/25690 added ```dart final FileName = 'file_name'.t( args: {'file_name': '{filename}', }, ); ``` * chore: fix formatting --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- mobile/lib/utils/bootstrap.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mobile/lib/utils/bootstrap.dart b/mobile/lib/utils/bootstrap.dart index 25ca64e8c..84a9ab52e 100644 --- a/mobile/lib/utils/bootstrap.dart +++ b/mobile/lib/utils/bootstrap.dart @@ -27,17 +27,19 @@ import 'package:isar/isar.dart'; import 'package:path_provider/path_provider.dart'; void configureFileDownloaderNotifications() { + final fileName = 'file_name'.t(args: {'file_name': '{filename}'}); + FileDownloader().configureNotificationForGroup( kDownloadGroupImage, - running: TaskNotification('downloading_media'.t(), '${'file_name'.t()}: {filename}'), - complete: TaskNotification('download_finished'.t(), '${'file_name'.t()}: {filename}'), + running: TaskNotification('downloading_media'.t(), fileName), + complete: TaskNotification('download_finished'.t(), fileName), progressBar: true, ); FileDownloader().configureNotificationForGroup( kDownloadGroupVideo, - running: TaskNotification('downloading_media'.t(), '${'file_name'.t()}: {filename}'), - complete: TaskNotification('download_finished'.t(), '${'file_name'.t()}: {filename}'), + running: TaskNotification('downloading_media'.t(), fileName), + complete: TaskNotification('download_finished'.t(), fileName), progressBar: true, );