From bcea64875fbd753cff64a7b3bce882406dbd67db Mon Sep 17 00:00:00 2001 From: Romo <85642291+romoisverycool@users.noreply.github.com> Date: Sat, 7 Feb 2026 03:56:14 +0100 Subject: [PATCH] fix: image and video download complete notification shows "file_name" (#25975) * fix: image and video download complete notification shows "file_name" * fix lint --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> --- mobile/lib/utils/bootstrap.dart | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mobile/lib/utils/bootstrap.dart b/mobile/lib/utils/bootstrap.dart index 84a9ab52e1..d63a92ba37 100644 --- a/mobile/lib/utils/bootstrap.dart +++ b/mobile/lib/utils/bootstrap.dart @@ -27,19 +27,17 @@ 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(), fileName), - complete: TaskNotification('download_finished'.t(), fileName), + running: TaskNotification('downloading_media'.t(), '${'file_name_text'.t()}: {filename}'), + complete: TaskNotification('download_finished'.t(), '${'file_name_text'.t()}: {filename}'), progressBar: true, ); FileDownloader().configureNotificationForGroup( kDownloadGroupVideo, - running: TaskNotification('downloading_media'.t(), fileName), - complete: TaskNotification('download_finished'.t(), fileName), + running: TaskNotification('downloading_media'.t(), '${'file_name_text'.t()}: {filename}'), + complete: TaskNotification('download_finished'.t(), '${'file_name_text'.t()}: {filename}'), progressBar: true, );