Add room upgrades

Fixes #155
This commit is contained in:
Henry Hiles 2026-11-03 21:13:27 -05:00
commit a0605a3617
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -1,7 +1,7 @@
import "dart:io";
import "package:flutter_riverpod/flutter_riverpod.dart";
import "package:nexus/controllers/client.dart";
import "package:nexus/controllers/capabilities.dart";
import "package:nexus/controllers/unified_push_distributors.dart";
class UnifiedPushAllowedController extends AsyncNotifier<String?> {
@ -19,9 +19,9 @@ class UnifiedPushAllowedController extends AsyncNotifier<String?> {
: "Your platform is not currently supported by UnifiedPush"}.";
}
final capabilities = await ref
.read(ClientController.provider.notifier)
.getCapabilities();
final capabilities = await ref.watch(
CapabilitiesController.provider.future,
);
if (capabilities.webpush?.vapid == null) {
return "Your homeserver does not support MSC4174 (Web Push), and therefore cannot send notifications to Nexus.";