1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-12-26 12:58:51 +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 {
String firebaseToken = "";
if (currStatus == await PushNotificationsHelper.getLocalStatus()) {
Navigator.of(context).pop();
return;
}
switch (currStatus) {
case PushNotificationsStatus.DISABLED:
break;