chore: Follow up shortcuts on android

pull/898/head
Krille 2 years ago
parent dee9323d47
commit 91f4cdc7e3
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -285,8 +285,8 @@ Future<void> _tryPushHelper(
final title = event.room.getLocalizedDisplayname(MatrixLocals(l10n)); final title = event.room.getLocalizedDisplayname(MatrixLocals(l10n));
if (PlatformInfos.isAndroid) { if (PlatformInfos.isAndroid && messagingStyleInformation == null) {
_setShortcut(event, l10n, title, roomAvatarFile); await _setShortcut(event, l10n, title, roomAvatarFile);
} }
await flutterLocalNotificationsPlugin.show( await flutterLocalNotificationsPlugin.show(
@ -302,7 +302,7 @@ Future<void> _tryPushHelper(
/// Creates a shortcut for Android platform but does not block displaying the /// Creates a shortcut for Android platform but does not block displaying the
/// notification. This is optional but provides a nicer view of the /// notification. This is optional but provides a nicer view of the
/// notification popup. /// notification popup.
void _setShortcut( Future<void> _setShortcut(
Event event, Event event,
L10n l10n, L10n l10n,
String title, String title,

Loading…
Cancel
Save