Refactor homeserver lookup code
Refactor homeserver lookup code
It was shorter. I actually wanted to write the code like it's written now but jshint errored on the optional chain. It's fixed now
Refactor homeserver lookup code