init ClientController before other providers
This commit is contained in:
parent
800ed0636d
commit
0cd815dc79
2 changed files with 49 additions and 30 deletions
|
|
@ -121,7 +121,7 @@ class UnifiedPushController extends AsyncNotifier<bool> {
|
|||
|
||||
Future<void> register([bool alreadyRegistered = false]) async {
|
||||
final clientState = ref.watch(ClientStateController.provider);
|
||||
if (clientState?.deviceId == null) ref.invalidateSelf();
|
||||
if (clientState?.deviceId == null) return ref.invalidateSelf();
|
||||
|
||||
final capabilities = await ref
|
||||
.watch(ClientController.provider.notifier)
|
||||
|
|
|
|||
Loading…
Reference in a new issue