|
|
|
|
@ -3,6 +3,7 @@ import 'dart:async';
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|
|
|
|
import 'package:go_router/go_router.dart';
|
|
|
|
|
import 'package:matrix/matrix.dart';
|
|
|
|
|
|
|
|
|
|
import 'package:fluffychat/pangea/common/constants/local.key.dart';
|
|
|
|
|
@ -189,6 +190,13 @@ class LoginController extends State<Login> {
|
|
|
|
|
password: passwordController.text.trim(),
|
|
|
|
|
// Pangea#
|
|
|
|
|
initialDeviceDisplayName: PlatformInfos.clientName,
|
|
|
|
|
// #Pangea
|
|
|
|
|
onInitStateChanged: (state) {
|
|
|
|
|
if (state == InitState.settingUpEncryption) {
|
|
|
|
|
context.go("/rooms");
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// Pangea#
|
|
|
|
|
);
|
|
|
|
|
MatrixState.pangeaController.pStoreService
|
|
|
|
|
.save(PLocalKey.loginType, 'password');
|
|
|
|
|
|