chore: Follow up android shortcuts

This commit is contained in:
Krille 2024-02-20 17:15:30 +01:00
parent d2a58422b4
commit 859701e158
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
2 changed files with 3 additions and 3 deletions

View file

@ -286,7 +286,7 @@ Future<void> _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<void> _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<void> _setShortcut(
Event event,
L10n l10n,
String title,

View file

@ -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"