Silence unnecessary warning

Don't complain that we can't enable guest login if nobody asked us to
pull/21833/head
David Baker 2019-08-02 11:08:37 +01:00
parent 7bb1e503cb
commit b1cc089062
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ export async function loadSession(opts) {
const fragmentQueryParams = opts.fragmentQueryParams || {};
const defaultDeviceDisplayName = opts.defaultDeviceDisplayName;
if (!guestHsUrl) {
if (enableGuest && !guestHsUrl) {
console.warn("Cannot enable guest access: can't determine HS URL to use");
enableGuest = false;
}