index : matrix-js-sdk

My fork of matrix-js-sdk

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