From 2d3017e97288de4f615c5867a18ef68220285900 Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Wed, 13 Oct 2021 14:21:17 +0200 Subject: [PATCH] fix: Disable registration for matrix.org --- lib/pages/views/homeserver_picker_view.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/pages/views/homeserver_picker_view.dart b/lib/pages/views/homeserver_picker_view.dart index a04da0186..d75d9f5ba 100644 --- a/lib/pages/views/homeserver_picker_view.dart +++ b/lib/pages/views/homeserver_picker_view.dart @@ -140,7 +140,13 @@ class HomeserverPickerView extends StatelessWidget { if (controller.registrationSupported && controller.passwordLoginSupported) 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( child: _LoginButton( onPressed: controller.signUpAction,