matrix-react-sdk
ac2b8b87 - Don't infinite loop on server change

Commit
6 years ago
Don't infinite loop on server change ServerConfig assumed that the state was already correct when checking the given urls against the default, but that is not neccessarily the case (eg. the validation can return a different url to what the user entered). This would cause an infinite loop because it would keep firing onServerConfigChange to change to the desired URLs but the state would never change. Fixes part of https://github.com/vector-im/riot-web/issues/10666
Author
Parents
Loading