From 91f4cdc7e33a72862884b4d51ff469af782098b0 Mon Sep 17 00:00:00 2001 From: Krille Date: Fri, 16 Feb 2024 07:16:43 +0100 Subject: [PATCH] chore: Follow up shortcuts on android --- lib/utils/push_helper.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/utils/push_helper.dart b/lib/utils/push_helper.dart index cca6c54db..46776a3b9 100644 --- a/lib/utils/push_helper.dart +++ b/lib/utils/push_helper.dart @@ -285,8 +285,8 @@ Future _tryPushHelper( final title = event.room.getLocalizedDisplayname(MatrixLocals(l10n)); - if (PlatformInfos.isAndroid) { - _setShortcut(event, l10n, title, roomAvatarFile); + if (PlatformInfos.isAndroid && messagingStyleInformation == null) { + 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,