bug fixes
This commit is contained in:
parent
52544d8814
commit
783451359e
2 changed files with 4 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ class PushKeyController(final String instance) extends Notifier<String?> {
|
|||
state = value;
|
||||
notifier.set(
|
||||
json.encode(
|
||||
prefs.add(instance, value).where((_, value) => value != null),
|
||||
prefs.add(instance, value).where((_, value) => value != null).unlock,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,9 @@ class UnifiedPushController extends AsyncNotifier<bool> {
|
|||
),
|
||||
onNewEndpoint: (endpoint, instance) async {
|
||||
final pushKey = endpoint.pubKeySet!.pubKey;
|
||||
ref.watch(PushKeyController.provider(instance).notifier).set(pushKey);
|
||||
await ref
|
||||
.watch(PushKeyController.provider(instance).notifier)
|
||||
.set(pushKey);
|
||||
|
||||
await client.registerPusher(
|
||||
.new(
|
||||
|
|
|
|||
Loading…
Reference in a new issue