mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 09:05:10 +00:00
fix: Signup on matrix.org
This commit is contained in:
parent
5a3cb04300
commit
87bc60717e
2 changed files with 4 additions and 5 deletions
|
@ -101,7 +101,9 @@ class SignupPageController extends State<SignupPage> {
|
|||
} catch (e) {
|
||||
error = (e as Object).toLocalizedString(context);
|
||||
} finally {
|
||||
setState(() => loading = false);
|
||||
if (mounted) {
|
||||
setState(() => loading = false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -141,10 +141,7 @@ class HomeserverPickerView extends StatelessWidget {
|
|||
labelText: L10n.of(context).login,
|
||||
),
|
||||
),
|
||||
if (controller.registrationSupported &&
|
||||
// Registration is broken on matrix.org
|
||||
Matrix.of(context).client.homeserver.host !=
|
||||
'matrix-client.matrix.org')
|
||||
if (controller.registrationSupported)
|
||||
Center(
|
||||
child: _LoginButton(
|
||||
onPressed: controller.signUpAction,
|
||||
|
|
Loading…
Reference in a new issue