feat: Add mute notification action
This commit is contained in:
parent
febd0e6b41
commit
d1abd71527
3 changed files with 13 additions and 2 deletions
|
|
@ -174,8 +174,10 @@ Future<void> notificationTap(
|
|||
parseCommands: false,
|
||||
displayPendingEvent: false,
|
||||
);
|
||||
case FluffyChatNotificationActions.mute:
|
||||
await room.setPushRuleState(PushRuleState.mentionsOnly);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum FluffyChatNotificationActions { markAsRead, reply }
|
||||
enum FluffyChatNotificationActions { markAsRead, reply, mute }
|
||||
|
|
|
|||
|
|
@ -272,6 +272,11 @@ Future<void> _tryPushHelper(
|
|||
l10n.markAsRead,
|
||||
semanticAction: SemanticAction.markAsRead,
|
||||
),
|
||||
AndroidNotificationAction(
|
||||
FluffyChatNotificationActions.mute.name,
|
||||
l10n.mute,
|
||||
semanticAction: SemanticAction.mute,
|
||||
),
|
||||
],
|
||||
);
|
||||
const iOSPlatformChannelSpecifics = DarwinNotificationDetails();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue