fix: Disable registration for matrix.org

This commit is contained in:
Krille Fear 2021-10-13 14:21:17 +02:00
parent 143c237d66
commit fdcb34e3a3

View File

@ -140,7 +140,13 @@ class HomeserverPickerView extends StatelessWidget {
if (controller.registrationSupported && if (controller.registrationSupported &&
controller.passwordLoginSupported) controller.passwordLoginSupported)
SizedBox(width: 12), SizedBox(width: 12),
if (controller.registrationSupported) if (controller.registrationSupported &&
// Registration is broken on matrix.org
Matrix.of(context)
.client
.homeserver
.host !=
'matrix-client.matrix.org')
Expanded( Expanded(
child: _LoginButton( child: _LoginButton(
onPressed: controller.signUpAction, onPressed: controller.signUpAction,