bug fixes

This commit is contained in:
Henry Hiles 2026-09-10 15:07:17 -04:00
commit 7792a1aae4
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 4 additions and 2 deletions

View file

@ -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,
),
);
}

View file

@ -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(