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 {
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user