From 5642fc4026f4b8523781108e4d1a6f82266a9562 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 6 Apr 2021 19:43:24 -0600 Subject: [PATCH] Doc the return --- src/vector/app.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/vector/app.tsx b/src/vector/app.tsx index c0f1e2dcd..1fc856c01 100644 --- a/src/vector/app.tsx +++ b/src/vector/app.tsx @@ -167,6 +167,10 @@ export async function loadApp(fragParams: {}) { idBaseUrl: config['validated_server_config'].isUrl, }); PlatformPeg.get().startSingleSignOn(tempCli, "sso", `/${getScreenFromLocation(window.location).screen}`); + + // We return here because startSingleSignOn() will asynchronously redirect us. We don't + // care to wait for it, and don't want to show any UI while we wait (not even half a welcome + // page). As such, just don't even bother loading the MatrixChat component. return; }