Skip to content

Commit

Permalink
Merge pull request #1971 from konrad-xtention/fix-well-known-cache-in…
Browse files Browse the repository at this point in the history
…validation

don't reset wellknown cache on Client initialization
  • Loading branch information
krille-chan authored Dec 17, 2024
2 parents 5d7b802 + c5532b8 commit 4249cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 4249cf1

Please sign in to comment.