feat: Nicer registration form

This commit is contained in:
Krille Fear 2021-10-30 14:06:10 +02:00
commit 661b740f57
6 changed files with 241 additions and 119 deletions

View file

@ -75,6 +75,9 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
int getClientIndexByMatrixId(String matrixId) =>
widget.clients.indexWhere((client) => client.userID == matrixId);
String currentClientSecret;
RequestTokenResponse currentThreepidCreds;
int get _safeActiveClient {
if (widget.clients.isEmpty) {
widget.clients.add(getLoginClient());