From 431a011cba595e338bee1679876546929b37feda Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 31 Jan 2023 12:48:48 -0800 Subject: [PATCH] Disable Notifications in Test Mode --- lib/notification_manager.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/notification_manager.dart b/lib/notification_manager.dart index 56d78250..f5cb9e8b 100644 --- a/lib/notification_manager.dart +++ b/lib/notification_manager.dart @@ -154,6 +154,12 @@ class NixNotificationManager implements NotificationsManager { } NotificationsManager newDesktopNotificationsManager(Future Function(String profileOnion, int convoId) notificationSelectConvo) { + + // We don't want notifications in Dev Mode + if (EnvironmentConfig.TEST_MODE) { + return NullNotificationsManager(); + } + if (Platform.isLinux && !Platform.isAndroid) { try { return NixNotificationManager(notificationSelectConvo);