From 859701e158c47a9dffff196b20b3b20d3f228a32 Mon Sep 17 00:00:00 2001 From: Krille Date: Tue, 20 Feb 2024 17:15:30 +0100 Subject: [PATCH] chore: Follow up android shortcuts --- lib/utils/push_helper.dart | 4 ++-- pubspec.lock | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/push_helper.dart b/lib/utils/push_helper.dart index 618410db7..520db7de3 100644 --- a/lib/utils/push_helper.dart +++ b/lib/utils/push_helper.dart @@ -286,7 +286,7 @@ Future _tryPushHelper( final title = event.room.getLocalizedDisplayname(MatrixLocals(l10n)); if (PlatformInfos.isAndroid && messagingStyleInformation == null) { - _setShortcut(event, l10n, title, roomAvatarFile); + await _setShortcut(event, l10n, title, roomAvatarFile); } await flutterLocalNotificationsPlugin.show( @@ -302,7 +302,7 @@ Future _tryPushHelper( /// Creates a shortcut for Android platform but does not block displaying the /// notification. This is optional but provides a nicer view of the /// notification popup. -void _setShortcut( +Future _setShortcut( Event event, L10n l10n, String title, diff --git a/pubspec.lock b/pubspec.lock index 7cd0d1a39..055187044 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -669,7 +669,7 @@ packages: description: path: "." ref: HEAD - resolved-ref: "67158a31e066265ad43463befb57c29ec2cbd77a" + resolved-ref: "930c51d56c87a7f8cefdf8c1db52c194baddc37d" url: "https://github.com/krille-chan/flutter_shortcuts.git" source: git version: "1.4.0"