From 9292a46db05d28bdb36e5fbe5ceb7fe3934b098c Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 20 Feb 2019 10:24:01 +0000 Subject: [PATCH] Update comment about Modular server type selection Modular now sets `disable_custom_urls`, so the server type selector is not shown for Modular-hosted Riot. --- src/components/views/auth/ServerTypeSelector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/auth/ServerTypeSelector.js b/src/components/views/auth/ServerTypeSelector.js index 7a28eec0ed..25f5dcee66 100644 --- a/src/components/views/auth/ServerTypeSelector.js +++ b/src/components/views/auth/ServerTypeSelector.js @@ -62,8 +62,8 @@ function getDefaultType(defaultHsUrl) { } else if (defaultHsUrl === TYPES.FREE.hsUrl) { return FREE; } else if (new URL(defaultHsUrl).hostname.endsWith('.modular.im')) { - // TODO: Use a Riot config parameter to detect Modular-ness. - // https://github.com/vector-im/riot-web/issues/8253 + // This is an unlikely case to reach, as Modular defaults to hiding the + // server type selector. return PREMIUM; } else { return ADVANCED;