From c5532b8923fd5bc66661eb1abbb945b93a78486e Mon Sep 17 00:00:00 2001 From: Konrad Pozniak Date: Thu, 12 Dec 2024 10:55:29 +0100 Subject: [PATCH] fix: don't reset wellknown cache on initialization --- lib/src/client.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index 01c57a72..9a31700a 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -137,7 +137,7 @@ class Client extends MatrixApi { /// [wellKnown] cache will be invalidated. @override set homeserver(Uri? homeserver) { - if (homeserver?.host != this.homeserver?.host) { + if (this.homeserver != null && homeserver?.host != this.homeserver?.host) { _wellKnown = null; unawaited(database?.storeWellKnown(null)); }