index : matrix-js-sdk

My fork of matrix-js-sdk

diff options
context:
space:
mode:
authorMichael Telatynski <[email protected]>2020-06-12 20:00:08 +0100
committerJ. Ryan Stinnett <[email protected]>2020-06-16 10:38:41 +0100
commit590f7786ebc194adc27df9ee507a29f2aa14eb57 (patch)
treee917fc1c30f019165a18aa591731760714397db1
parent0024edcb7f2722352f1cab965789595db901165e (diff)
downloadmatrix-js-sdk-590f7786ebc194adc27df9ee507a29f2aa14eb57.tar.gz
clean up
-rw-r--r--src/interactive-auth.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/interactive-auth.js b/src/interactive-auth.js
index edf5a429..b7e99b3d 100644
--- a/src/interactive-auth.js
+++ b/src/interactive-auth.js
@@ -148,14 +148,7 @@ InteractiveAuth.prototype = {
// if we have no flows, try a request to acquire the flows
if (!hasFlows) {
if (this._busyChangedCallback) this._busyChangedCallback(true);
- // use the existing sessionid, if one is present.
- let auth = null;
- if (this._data.session) {
- auth = {
- session: this._data.session,
- };
- }
- this._doRequest(auth).finally(() => {
+ this._doRequest(this._data || null).finally(() => {
if (this._busyChangedCallback) this._busyChangedCallback(false);
});
} else {