From 00cecf3e639f9e6813fefd332f9a2d5c7aea5f9d Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Wed, 5 Aug 2020 14:34:36 +1000 Subject: [PATCH] Clean --- .../thoughtcrime/securesms/loki/activities/SettingsActivity.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/org/thoughtcrime/securesms/loki/activities/SettingsActivity.kt b/src/org/thoughtcrime/securesms/loki/activities/SettingsActivity.kt index 29db9e3428..79cf26157f 100644 --- a/src/org/thoughtcrime/securesms/loki/activities/SettingsActivity.kt +++ b/src/org/thoughtcrime/securesms/loki/activities/SettingsActivity.kt @@ -202,9 +202,6 @@ class SettingsActivity : PassphraseRequiredActionBarActivity() { if (displayName.isEmpty()) { return Toast.makeText(this, R.string.activity_settings_display_name_missing_error, Toast.LENGTH_SHORT).show() } - if (!displayName.matches(Regex("[a-zA-Z0-9_]+"))) { - return Toast.makeText(this, R.string.activity_settings_invalid_display_name_error, Toast.LENGTH_SHORT).show() - } if (displayName.toByteArray().size > ProfileCipher.NAME_PADDED_LENGTH) { return Toast.makeText(this, R.string.activity_settings_display_name_too_long_error, Toast.LENGTH_SHORT).show() }