add UnifiedPushAllowedController

This commit is contained in:
Henry Hiles 2026-08-23 14:26:51 -04:00
commit 7218eb5195
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
3 changed files with 67 additions and 16 deletions

View file

@ -78,8 +78,9 @@ class UnifiedPushController extends AsyncNotifier<bool> {
if (clientState?.deviceId == null) ref.invalidateSelf();
final alreadyRegistered = early ? true : await future;
final client = ref.watch(ClientController.provider.notifier);
final capabilities = await client.getCapabilities();
final capabilities = await ref
.watch(ClientController.provider.notifier)
.getCapabilities();
if (capabilities.webpush?.vapid == null) {
throw UnsupportedError(