Disable Notifications in Test Mode
This commit is contained in:
parent
472a245623
commit
431a011cba
|
@ -154,6 +154,12 @@ class NixNotificationManager implements NotificationsManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
NotificationsManager newDesktopNotificationsManager(Future<void> Function(String profileOnion, int convoId) notificationSelectConvo) {
|
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) {
|
if (Platform.isLinux && !Platform.isAndroid) {
|
||||||
try {
|
try {
|
||||||
return NixNotificationManager(notificationSelectConvo);
|
return NixNotificationManager(notificationSelectConvo);
|
||||||
|
|
Loading…
Reference in New Issue