chore: Follow up notification actions
This commit is contained in:
parent
fdb5826d09
commit
4f0ed3e93f
1 changed files with 21 additions and 19 deletions
|
|
@ -278,25 +278,27 @@ Future<void> _tryPushHelper(
|
||||||
importance: Importance.high,
|
importance: Importance.high,
|
||||||
priority: Priority.max,
|
priority: Priority.max,
|
||||||
groupKey: event.room.spaceParents.firstOrNull?.roomId ?? 'rooms',
|
groupKey: event.room.spaceParents.firstOrNull?.roomId ?? 'rooms',
|
||||||
actions: <AndroidNotificationAction>[
|
actions: event.type == EventTypes.RoomMember
|
||||||
AndroidNotificationAction(
|
? null
|
||||||
FluffyChatNotificationActions.reply.name,
|
: <AndroidNotificationAction>[
|
||||||
l10n.reply,
|
AndroidNotificationAction(
|
||||||
inputs: [
|
FluffyChatNotificationActions.reply.name,
|
||||||
AndroidNotificationActionInput(
|
l10n.reply,
|
||||||
label: l10n.writeAMessage,
|
inputs: [
|
||||||
),
|
AndroidNotificationActionInput(
|
||||||
],
|
label: l10n.writeAMessage,
|
||||||
cancelNotification: false,
|
),
|
||||||
allowGeneratedReplies: true,
|
],
|
||||||
semanticAction: SemanticAction.reply,
|
cancelNotification: false,
|
||||||
),
|
allowGeneratedReplies: true,
|
||||||
AndroidNotificationAction(
|
semanticAction: SemanticAction.reply,
|
||||||
FluffyChatNotificationActions.markAsRead.name,
|
),
|
||||||
l10n.markAsRead,
|
AndroidNotificationAction(
|
||||||
semanticAction: SemanticAction.markAsRead,
|
FluffyChatNotificationActions.markAsRead.name,
|
||||||
),
|
l10n.markAsRead,
|
||||||
],
|
semanticAction: SemanticAction.markAsRead,
|
||||||
|
),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
const iOSPlatformChannelSpecifics = DarwinNotificationDetails();
|
const iOSPlatformChannelSpecifics = DarwinNotificationDetails();
|
||||||
final platformChannelSpecifics = NotificationDetails(
|
final platformChannelSpecifics = NotificationDetails(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue