1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-09 10:22:46 +03:00

Keep data from response in any case

Fix up flows if they're absent
This commit is contained in:
David Baker
2017-03-01 17:10:08 +00:00
parent a33e4477af
commit cb7fb6c7be

View File

@@ -241,7 +241,9 @@ InteractiveAuth.prototype = {
// doesn't look like an interactive-auth failure. fail the whole lot. // doesn't look like an interactive-auth failure. fail the whole lot.
throw error; throw error;
} }
if (errorFlows) self._data = error.data; // if the error didn't come with flows, copy over the ones we have
if (!error.data.flows) error.data.flows = self._data.flows;
self._data = error.data;
self._startNextAuthStage(); self._startNextAuthStage();
}, },
); );