mirror of https://github.com/vector-im/riot-web
Tweak import
parent
348f6f971a
commit
a85efe5f65
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import * as Matrix from 'matrix-js-sdk';
|
import { SERVICE_TYPES } from 'matrix-js-sdk';
|
||||||
|
|
||||||
import MatrixClientPeg from './MatrixClientPeg';
|
import MatrixClientPeg from './MatrixClientPeg';
|
||||||
import { Service, startTermsFlow } from './Terms';
|
import { Service, startTermsFlow } from './Terms';
|
||||||
|
@ -66,7 +66,7 @@ export default class IdentityAuthClient {
|
||||||
if (e.errcode === "M_TERMS_NOT_SIGNED") {
|
if (e.errcode === "M_TERMS_NOT_SIGNED") {
|
||||||
console.log("Identity Server requires new terms to be agreed to");
|
console.log("Identity Server requires new terms to be agreed to");
|
||||||
await startTermsFlow([new Service(
|
await startTermsFlow([new Service(
|
||||||
Matrix.SERVICE_TYPES.IS,
|
SERVICE_TYPES.IS,
|
||||||
MatrixClientPeg.get().idBaseUrl,
|
MatrixClientPeg.get().idBaseUrl,
|
||||||
token,
|
token,
|
||||||
)]);
|
)]);
|
||||||
|
|
Loading…
Reference in New Issue