diff --git a/res/values/strings.xml b/res/values/strings.xml index a1eb83fcbe..e24a5a2276 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1747,7 +1747,7 @@ Start a Session Please enter a group name Please enter a shorter group name - Please pick at least 2 group members + Please pick at least 1 group member A closed group cannot have more than 10 members One of the members of your group has an invalid Session ID @@ -1841,7 +1841,7 @@ Add members Group name can\'t be empty Please enter a shorter group name - Groups must have at least 2 group members + Groups must have at least 1 group member A closed group cannot have more than 10 members One of the members of your group has an invalid Session ID Are you sure you want to remove this user? diff --git a/src/org/thoughtcrime/securesms/loki/activities/CreateClosedGroupActivity.kt b/src/org/thoughtcrime/securesms/loki/activities/CreateClosedGroupActivity.kt index 2add7f3e56..befc7d6d3e 100644 --- a/src/org/thoughtcrime/securesms/loki/activities/CreateClosedGroupActivity.kt +++ b/src/org/thoughtcrime/securesms/loki/activities/CreateClosedGroupActivity.kt @@ -115,7 +115,7 @@ class CreateClosedGroupActivity : PassphraseRequiredActionBarActivity(), LoaderM return Toast.makeText(this, R.string.activity_create_closed_group_group_name_too_long_error, Toast.LENGTH_LONG).show() } val selectedMembers = this.selectContactsAdapter.selectedMembers - if (selectedMembers.count() < 2) { + if (selectedMembers.count() < 1) { return Toast.makeText(this, R.string.activity_create_closed_group_not_enough_group_members_error, Toast.LENGTH_LONG).show() } if (selectedMembers.count() > ClosedGroupsProtocol.groupSizeLimit) { // Minus one because we're going to include self later @@ -136,7 +136,7 @@ class CreateClosedGroupActivity : PassphraseRequiredActionBarActivity(), LoaderM return Toast.makeText(this, R.string.activity_create_closed_group_group_name_too_long_error, Toast.LENGTH_LONG).show() } val selectedMembers = this.selectContactsAdapter.selectedMembers - if (selectedMembers.count() < 2) { + if (selectedMembers.count() < 1) { return Toast.makeText(this, R.string.activity_create_closed_group_not_enough_group_members_error, Toast.LENGTH_LONG).show() } if (selectedMembers.count() > 10) { diff --git a/src/org/thoughtcrime/securesms/loki/activities/EditClosedGroupActivity.kt b/src/org/thoughtcrime/securesms/loki/activities/EditClosedGroupActivity.kt index 75f6f2a18d..b0485b1fff 100644 --- a/src/org/thoughtcrime/securesms/loki/activities/EditClosedGroupActivity.kt +++ b/src/org/thoughtcrime/securesms/loki/activities/EditClosedGroupActivity.kt @@ -222,7 +222,7 @@ class EditClosedGroupActivity : PassphraseRequiredActionBarActivity() { isSSKBasedClosedGroup = false } - if (members.size < 2) { + if (members.size < 1) { return Toast.makeText(this, R.string.activity_edit_closed_group_not_enough_group_members_error, Toast.LENGTH_LONG).show() }