add UnifiedPushAllowedController
This commit is contained in:
parent
fe871217b2
commit
7218eb5195
3 changed files with 67 additions and 16 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue