1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-16 22:01:54 +03:00

Silence unnecessary warning

Don't complain that we can't enable guest login if nobody asked us to
This commit is contained in:
David Baker
2019-08-02 11:08:37 +01:00
parent 7bb1e503cb
commit b1cc089062

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;
}