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:
commit
4249cf16d2
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue