Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Test clearing with payload

laurenspriem407ad415200b
diff --git a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
index e3ad74a585..b63944fa72 100644
--- a/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
+++ b/mobile/lib/ui/settings/debug/ml_debug_section_widget.dart
@@ -96,8 +96,9 @@ class _MLDebugSectionWidgetState extends State<MLDebugSectionWidget> {
trailingIconIsMuted: true,
onTap: () async {
try {
- await NotificationService.instance
- .clearAllScheduledNotifications();
+ await NotificationService.instance.clearAllScheduledNotifications(
+ containingPayload: "onThisDay",
+ );
showShortToast(context, 'Done');
} catch (e, s) {
logger.severe('clearAllScheduledNotifications failed ', e, s);