Compare commits

..
Author SHA1 Message Date
d7c64fea80
potentially fix notifs on flatpak 2026-09-20 00:04:50 -04:00
87e7e093f7
Revert "don't invalidate UP controller"
This reverts commit 73c4a7d07f.
2026-09-20 00:02:49 -04:00
3 changed files with 10 additions and 9 deletions

11
flake.lock generated
View file

@ -42,15 +42,16 @@
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1774860670,
"narHash": "sha256-YjJkQrvxrErXtfDi3obUn6rNmkA+CIAZ3f5NgL5xuYE=",
"owner": "neobrain",
"lastModified": 1789876218,
"narHash": "sha256-/sUFGNLvcwf9MxGw+QS24o1bg217fQRY9NpinlmSjH4=",
"owner": "Henry-Hiles",
"repo": "nix2flatpak",
"rev": "61d68e21e3fbc2d57590051f48736bea271f4aba",
"rev": "8264b886c1e64bffc172c49e9dfcb551cbd863f4",
"type": "github"
},
"original": {
"owner": "neobrain",
"owner": "Henry-Hiles",
"ref": "quad/fix/names",
"repo": "nix2flatpak",
"type": "github"
}

View file

@ -5,7 +5,7 @@
self.submodules = true;
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
nix2flatpak.url = "github:neobrain/nix2flatpak";
nix2flatpak.url = "github:Henry-Hiles/nix2flatpak/quad/fix/names";
};
outputs =

View file

@ -103,7 +103,7 @@ class UnifiedPushController extends AsyncNotifier<bool> {
await ref
.watch(PushKeyController.provider(instance).notifier)
.set(null);
state = .data(false);
ref.invalidateSelf();
},
);
@ -139,7 +139,7 @@ class UnifiedPushController extends AsyncNotifier<bool> {
vapid: capabilities.webpush?.vapid,
);
state = .data(true);
if (!alreadyRegistered) ref.invalidateSelf();
}
Future<void> deregister() async {
@ -157,7 +157,7 @@ class UnifiedPushController extends AsyncNotifier<bool> {
}
await UnifiedPush.unregister(clientState.deviceId!);
state = .data(false);
ref.invalidateSelf();
}
static final provider = AsyncNotifierProvider<UnifiedPushController, bool>(