bug fixes
This commit is contained in:
parent
06720238b8
commit
7792a1aae4
2 changed files with 4 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ class PushKeyController(final String instance) extends Notifier<String?> {
|
||||||
state = value;
|
state = value;
|
||||||
notifier.set(
|
notifier.set(
|
||||||
json.encode(
|
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 {
|
onNewEndpoint: (endpoint, instance) async {
|
||||||
final pushKey = endpoint.pubKeySet!.pubKey;
|
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(
|
await client.registerPusher(
|
||||||
.new(
|
.new(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue