fix: don't reset wellknown cache on initialization

This commit is contained in:
Konrad Pozniak 2024-12-12 10:55:29 +01:00 committed by Krille
parent 5d7b802027
commit c5532b8923
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class Client extends MatrixApi {
/// [wellKnown] cache will be invalidated. /// [wellKnown] cache will be invalidated.
@override @override
set homeserver(Uri? homeserver) { set homeserver(Uri? homeserver) {
if (homeserver?.host != this.homeserver?.host) { if (this.homeserver != null && homeserver?.host != this.homeserver?.host) {
_wellKnown = null; _wellKnown = null;
unawaited(database?.storeWellKnown(null)); unawaited(database?.storeWellKnown(null));
} }