|
|
|
@ -278,25 +278,27 @@ Future<void> _tryPushHelper(
|
|
|
|
|
importance: Importance.high,
|
|
|
|
|
priority: Priority.max,
|
|
|
|
|
groupKey: event.room.spaceParents.firstOrNull?.roomId ?? 'rooms',
|
|
|
|
|
actions: <AndroidNotificationAction>[
|
|
|
|
|
AndroidNotificationAction(
|
|
|
|
|
FluffyChatNotificationActions.reply.name,
|
|
|
|
|
l10n.reply,
|
|
|
|
|
inputs: [
|
|
|
|
|
AndroidNotificationActionInput(
|
|
|
|
|
label: l10n.writeAMessage,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
cancelNotification: false,
|
|
|
|
|
allowGeneratedReplies: true,
|
|
|
|
|
semanticAction: SemanticAction.reply,
|
|
|
|
|
),
|
|
|
|
|
AndroidNotificationAction(
|
|
|
|
|
FluffyChatNotificationActions.markAsRead.name,
|
|
|
|
|
l10n.markAsRead,
|
|
|
|
|
semanticAction: SemanticAction.markAsRead,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
actions: event.type == EventTypes.RoomMember
|
|
|
|
|
? null
|
|
|
|
|
: <AndroidNotificationAction>[
|
|
|
|
|
AndroidNotificationAction(
|
|
|
|
|
FluffyChatNotificationActions.reply.name,
|
|
|
|
|
l10n.reply,
|
|
|
|
|
inputs: [
|
|
|
|
|
AndroidNotificationActionInput(
|
|
|
|
|
label: l10n.writeAMessage,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
cancelNotification: false,
|
|
|
|
|
allowGeneratedReplies: true,
|
|
|
|
|
semanticAction: SemanticAction.reply,
|
|
|
|
|
),
|
|
|
|
|
AndroidNotificationAction(
|
|
|
|
|
FluffyChatNotificationActions.markAsRead.name,
|
|
|
|
|
l10n.markAsRead,
|
|
|
|
|
semanticAction: SemanticAction.markAsRead,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
const iOSPlatformChannelSpecifics = DarwinNotificationDetails();
|
|
|
|
|
final platformChannelSpecifics = NotificationDetails(
|
|
|
|
|