You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
clean up
This commit is contained in:
@@ -148,14 +148,7 @@ InteractiveAuth.prototype = {
|
|||||||
// if we have no flows, try a request to acquire the flows
|
// if we have no flows, try a request to acquire the flows
|
||||||
if (!hasFlows) {
|
if (!hasFlows) {
|
||||||
if (this._busyChangedCallback) this._busyChangedCallback(true);
|
if (this._busyChangedCallback) this._busyChangedCallback(true);
|
||||||
// use the existing sessionid, if one is present.
|
this._doRequest(this._data || null).finally(() => {
|
||||||
let auth = null;
|
|
||||||
if (this._data.session) {
|
|
||||||
auth = {
|
|
||||||
session: this._data.session,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
this._doRequest(auth).finally(() => {
|
|
||||||
if (this._busyChangedCallback) this._busyChangedCallback(false);
|
if (this._busyChangedCallback) this._busyChangedCallback(false);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user