mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 04:49:21 +00:00
Do not re-configure local push notification if the same option is selected
This commit is contained in:
parent
bdcd0a2e64
commit
2c2475dc22
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user