Merge pull request #1971 from konrad-xtention/fix-well-known-cache-invalidation

don't reset wellknown cache on Client initialization
This commit is contained in:
Krille-chan 2024-12-17 13:12:50 +01:00 committed by GitHub
commit 4249cf16d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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