fix: Import sdk

This commit is contained in:
Christian Pauly 2021-09-10 11:23:40 +02:00
parent 7b608a1391
commit c779577f00
5 changed files with 10 additions and 9 deletions

View File

@ -177,9 +177,9 @@ class LoginController extends State<Login> {
final clientSecret = DateTime.now().millisecondsSinceEpoch.toString();
final response = await showFutureLoadingDialog(
context: context,
future: () => Matrix.of(context).client.requestTokenToResetPasswordEmail(
clientSecret,
future: () => Matrix.of(context).client.requestEmailToken(
input.single,
clientSecret,
sendAttempt++,
),
);

View File

@ -33,9 +33,9 @@ class Settings3PidController extends State<Settings3Pid> {
final clientSecret = DateTime.now().millisecondsSinceEpoch.toString();
final response = await showFutureLoadingDialog(
context: context,
future: () => Matrix.of(context).client.requestTokenToRegisterEmail(
clientSecret,
future: () => Matrix.of(context).client.requestEmailToken(
input.single,
clientSecret,
Settings3Pid.sendAttempt++,
),
);

View File

@ -168,9 +168,9 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
final clientSecret =
Matrix.of(context).client.generateUniqueTransactionId();
final currentThreepidCreds =
await Matrix.of(context).client.requestTokenToRegisterEmail(
clientSecret,
await Matrix.of(context).client.requestEmailToken(
emailInput.single,
clientSecret,
0,
);
final auth = AuthenticationThreePidCreds(
@ -205,7 +205,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
cancelLabel: L10n.of(widget.context).cancel,
)) {
return uiaRequest.completeStage(
AuthenticationData(session: uiaRequest.session),
AuthenticationData(session: uiaRequest.session, type: ''),
);
} else {
return uiaRequest.cancel();

View File

@ -726,12 +726,12 @@ packages:
source: git
version: "0.4.3"
matrix_api_lite:
dependency: transitive
dependency: "direct main"
description:
name: matrix_api_lite
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.3"
version: "0.4.2"
matrix_link_text:
dependency: "direct main"
description:

View File

@ -49,6 +49,7 @@ dependencies:
git:
url: https://gitlab.com/famedly/company/frontend/famedlysdk.git
ref: e13b00d127bc68c0659188b1e8aa25f510e9398a
matrix_api_lite: 0.4.2
matrix_link_text: ^1.0.2
native_imaging:
git: https://gitlab.com/famedly/libraries/native_imaging.git