1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Do not re-configure local push notification if the same option is selected

This commit is contained in:
Pierre HUBERT 2021-04-16 08:22:05 +02:00
parent bdcd0a2e64
commit 2c2475dc22

View File

@ -114,6 +114,11 @@ class _PushNotificationsConfigurationRouteState
try { try {
String firebaseToken = ""; String firebaseToken = "";
if (currStatus == await PushNotificationsHelper.getLocalStatus()) {
Navigator.of(context).pop();
return;
}
switch (currStatus) { switch (currStatus) {
case PushNotificationsStatus.DISABLED: case PushNotificationsStatus.DISABLED:
break; break;