1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Backwards compat

This commit is contained in:
David Baker
2017-03-02 14:09:08 +00:00
parent 30d9dec438
commit ca395541b6

View File

@@ -92,7 +92,8 @@ function InteractiveAuth(opts) {
this._matrixClient = opts.matrixClient;
this._data = opts.authData || {};
this._requestCallback = opts.doRequest;
this._stateUpdatedCallback = opts.stateUpdated;
// startAuthStage included for backwards compat
this._stateUpdatedCallback = opts.stateUpdated || opts.startAuthStage;
this._completionDeferred = null;
this._inputs = opts.inputs || {};