mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-12 02:32:54 +01:00
fix: Import sdk
This commit is contained in:
parent
7b608a1391
commit
c779577f00
@ -177,9 +177,9 @@ class LoginController extends State<Login> {
|
|||||||
final clientSecret = DateTime.now().millisecondsSinceEpoch.toString();
|
final clientSecret = DateTime.now().millisecondsSinceEpoch.toString();
|
||||||
final response = await showFutureLoadingDialog(
|
final response = await showFutureLoadingDialog(
|
||||||
context: context,
|
context: context,
|
||||||
future: () => Matrix.of(context).client.requestTokenToResetPasswordEmail(
|
future: () => Matrix.of(context).client.requestEmailToken(
|
||||||
clientSecret,
|
|
||||||
input.single,
|
input.single,
|
||||||
|
clientSecret,
|
||||||
sendAttempt++,
|
sendAttempt++,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -33,9 +33,9 @@ class Settings3PidController extends State<Settings3Pid> {
|
|||||||
final clientSecret = DateTime.now().millisecondsSinceEpoch.toString();
|
final clientSecret = DateTime.now().millisecondsSinceEpoch.toString();
|
||||||
final response = await showFutureLoadingDialog(
|
final response = await showFutureLoadingDialog(
|
||||||
context: context,
|
context: context,
|
||||||
future: () => Matrix.of(context).client.requestTokenToRegisterEmail(
|
future: () => Matrix.of(context).client.requestEmailToken(
|
||||||
clientSecret,
|
|
||||||
input.single,
|
input.single,
|
||||||
|
clientSecret,
|
||||||
Settings3Pid.sendAttempt++,
|
Settings3Pid.sendAttempt++,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -168,9 +168,9 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||||||
final clientSecret =
|
final clientSecret =
|
||||||
Matrix.of(context).client.generateUniqueTransactionId();
|
Matrix.of(context).client.generateUniqueTransactionId();
|
||||||
final currentThreepidCreds =
|
final currentThreepidCreds =
|
||||||
await Matrix.of(context).client.requestTokenToRegisterEmail(
|
await Matrix.of(context).client.requestEmailToken(
|
||||||
clientSecret,
|
|
||||||
emailInput.single,
|
emailInput.single,
|
||||||
|
clientSecret,
|
||||||
0,
|
0,
|
||||||
);
|
);
|
||||||
final auth = AuthenticationThreePidCreds(
|
final auth = AuthenticationThreePidCreds(
|
||||||
@ -205,7 +205,7 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||||||
cancelLabel: L10n.of(widget.context).cancel,
|
cancelLabel: L10n.of(widget.context).cancel,
|
||||||
)) {
|
)) {
|
||||||
return uiaRequest.completeStage(
|
return uiaRequest.completeStage(
|
||||||
AuthenticationData(session: uiaRequest.session),
|
AuthenticationData(session: uiaRequest.session, type: ''),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return uiaRequest.cancel();
|
return uiaRequest.cancel();
|
||||||
|
@ -726,12 +726,12 @@ packages:
|
|||||||
source: git
|
source: git
|
||||||
version: "0.4.3"
|
version: "0.4.3"
|
||||||
matrix_api_lite:
|
matrix_api_lite:
|
||||||
dependency: transitive
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: matrix_api_lite
|
name: matrix_api_lite
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.4.3"
|
version: "0.4.2"
|
||||||
matrix_link_text:
|
matrix_link_text:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
@ -49,6 +49,7 @@ dependencies:
|
|||||||
git:
|
git:
|
||||||
url: https://gitlab.com/famedly/company/frontend/famedlysdk.git
|
url: https://gitlab.com/famedly/company/frontend/famedlysdk.git
|
||||||
ref: e13b00d127bc68c0659188b1e8aa25f510e9398a
|
ref: e13b00d127bc68c0659188b1e8aa25f510e9398a
|
||||||
|
matrix_api_lite: 0.4.2
|
||||||
matrix_link_text: ^1.0.2
|
matrix_link_text: ^1.0.2
|
||||||
native_imaging:
|
native_imaging:
|
||||||
git: https://gitlab.com/famedly/libraries/native_imaging.git
|
git: https://gitlab.com/famedly/libraries/native_imaging.git
|
||||||
|
Loading…
Reference in New Issue
Block a user