From fca83b65ccd3824a3141bca74cfebcfdb3aa5eec Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Wed, 26 Aug 2020 11:46:12 +1000 Subject: [PATCH] make min group member 1 on creation --- _locales/en/messages.json | 2 +- _locales/ru/messages.json | 2 +- ts/components/MainViewController.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 246da91c6..c68901aa2 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -2211,7 +2211,7 @@ "androidKey": "activity_create_closed_group_group_name_too_long_error" }, "pickClosedGroupMember": { - "message": "Please pick at least 2 group members", + "message": "Please pick at least 1 group member", "androidKey": "activity_create_closed_group_not_enough_group_members_error" }, "closedGroupMaxSize": { diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json index 5d55993dc..119069859 100644 --- a/_locales/ru/messages.json +++ b/_locales/ru/messages.json @@ -1412,7 +1412,7 @@ "message": "Пожалуйста, введите более короткое имя группы" }, "pickClosedGroupMember": { - "message": "Пожалуйста, выберите как минимум 2 участников группы" + "message": "Пожалуйста, выберите как минимум еще 1 участника группы" }, "closedGroupMaxSize": { "message": "В закрытой группе не может быть больше 10 участников" diff --git a/ts/components/MainViewController.tsx b/ts/components/MainViewController.tsx index 46f34762e..d860a44bd 100644 --- a/ts/components/MainViewController.tsx +++ b/ts/components/MainViewController.tsx @@ -68,9 +68,9 @@ async function createClosedGroup( } // >= because we add ourself as a member AFTER this. so a 10 group is already invalid as it will be 11 with ourself - // the same is valid with groups count <= 1 + // the same is valid with groups count < 1 - if (groupMembers.length <= 1) { + if (groupMembers.length < 1) { ToastUtils.push({ title: window.i18n('pickClosedGroupMember'), type: 'error',