Skip to content

Commit

Permalink
chore: follow up wellknown fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Nov 2, 2024
1 parent be7a7fb commit 593acd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pages/settings/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ class SettingsController extends State<Settings> {
}

Future<String?> getOidcAccountManageUrl() async {
final wellKnown = await Matrix.of(context).client.getWellknown();
final client = Matrix.of(context).client;
final wellKnown = client.wellKnown ?? await client.getWellknown();
return wellKnown.additionalProperties
.tryGetMap<String, Object?>('org.matrix.msc2965.authentication')
?.tryGet<String>('account');
Expand Down

0 comments on commit 593acd7

Please sign in to comment.