Disable Notifications in Test Mode

This commit is contained in:
Sarah Jamie Lewis 2023-01-31 12:48:48 -08:00
parent 472a245623
commit 431a011cba
1 changed files with 6 additions and 0 deletions

View File

@ -154,6 +154,12 @@ class NixNotificationManager implements NotificationsManager {
}
NotificationsManager newDesktopNotificationsManager(Future<void> 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);