From 785b4949e689fbbbbd56f315cf9356ae24221cb2 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 15 Oct 2020 19:02:12 +0200 Subject: [PATCH] Fix a register issue --- .../app/fedilab/fedilabtube/PeertubeRegisterActivity.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/app/fedilab/fedilabtube/PeertubeRegisterActivity.java b/app/src/main/java/app/fedilab/fedilabtube/PeertubeRegisterActivity.java index 2aa7873..4c0faaa 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/PeertubeRegisterActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/PeertubeRegisterActivity.java @@ -145,9 +145,11 @@ public class PeertubeRegisterActivity extends AppCompatActivity { return; } String[] emailArray = email.getText().toString().split("@"); - if (emailArray.length > 1 && !Arrays.asList(Helper.valideEmails).contains(emailArray[1])) { - Toasty.error(PeertubeRegisterActivity.this, getString(R.string.email_error_domain, emailArray[1])).show(); - return; + if (!BuildConfig.full_instances) { + if (emailArray.length > 1 && !Arrays.asList(Helper.valideEmails).contains(emailArray[1])) { + Toasty.error(PeertubeRegisterActivity.this, getString(R.string.email_error_domain, emailArray[1])).show(); + return; + } } if (password.getText().toString().trim().length() < 8) {