From 474acb5a30421e3ef90310a098f8302d8dd9dff0 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Tue, 19 Jan 2021 13:51:26 +1100 Subject: [PATCH] Raise closed group size to 100 members --- Session/Closed Groups/NewClosedGroupVC.swift | 2 +- Session/Meta/Translations/de.lproj/Localizable.strings | 2 +- Session/Meta/Translations/en.lproj/Localizable.strings | 2 +- Session/Meta/Translations/es.lproj/Localizable.strings | 2 +- Session/Meta/Translations/fa.lproj/Localizable.strings | 2 +- Session/Meta/Translations/fr.lproj/Localizable.strings | 2 +- Session/Meta/Translations/id-ID.lproj/Localizable.strings | 2 +- Session/Meta/Translations/it.lproj/Localizable.strings | 2 +- Session/Meta/Translations/ja.lproj/Localizable.strings | 2 +- Session/Meta/Translations/pl.lproj/Localizable.strings | 2 +- Session/Meta/Translations/pt_BR.lproj/Localizable.strings | 2 +- Session/Meta/Translations/ru.lproj/Localizable.strings | 2 +- Session/Meta/Translations/vi-VN.lproj/Localizable.strings | 2 +- Session/Meta/Translations/zh_CN.lproj/Localizable.strings | 2 +- .../NotificationServiceExtension.swift | 2 -- 15 files changed, 14 insertions(+), 16 deletions(-) diff --git a/Session/Closed Groups/NewClosedGroupVC.swift b/Session/Closed Groups/NewClosedGroupVC.swift index 3250f7be3..6cb1e10d3 100644 --- a/Session/Closed Groups/NewClosedGroupVC.swift +++ b/Session/Closed Groups/NewClosedGroupVC.swift @@ -163,7 +163,7 @@ final class NewClosedGroupVC : BaseVC, UITableViewDataSource, UITableViewDelegat guard selectedContacts.count >= 1 else { return showError(title: "Please pick at least 1 group member") } - guard selectedContacts.count < 20 else { // Minus one because we're going to include self later + guard selectedContacts.count < 100 else { // Minus one because we're going to include self later return showError(title: NSLocalizedString("vc_create_closed_group_too_many_group_members_error", comment: "")) } let selectedContacts = self.selectedContacts diff --git a/Session/Meta/Translations/de.lproj/Localizable.strings b/Session/Meta/Translations/de.lproj/Localizable.strings index e11943c7d..d009479f6 100644 --- a/Session/Meta/Translations/de.lproj/Localizable.strings +++ b/Session/Meta/Translations/de.lproj/Localizable.strings @@ -2638,7 +2638,7 @@ "vc_create_closed_group_empty_state_button_title" = "Session starten"; "vc_create_closed_group_group_name_missing_error" = "Bitte geben Sie einen Gruppennamen ein."; "vc_create_closed_group_group_name_too_long_error" = "Bitte geben Sie einen kürzeren Gruppennamen ein."; -"vc_create_closed_group_too_many_group_members_error" = "Eine geschlossene Gruppe kann maximal 20 Mitglieder haben."; +"vc_create_closed_group_too_many_group_members_error" = "Eine geschlossene Gruppe kann maximal 100 Mitglieder haben."; "vc_create_closed_group_invalid_session_id_error" = "Ein Mitglied Ihrer Gruppe hat eine ungültige Session ID."; "vc_join_public_chat_title" = "Offener Gruppe beitreten"; diff --git a/Session/Meta/Translations/en.lproj/Localizable.strings b/Session/Meta/Translations/en.lproj/Localizable.strings index c3869fecf..2389da5bf 100644 --- a/Session/Meta/Translations/en.lproj/Localizable.strings +++ b/Session/Meta/Translations/en.lproj/Localizable.strings @@ -2647,7 +2647,7 @@ "vc_create_closed_group_empty_state_button_title" = "Start a Session"; "vc_create_closed_group_group_name_missing_error" = "Please enter a group name"; "vc_create_closed_group_group_name_too_long_error" = "Please enter a shorter group name"; -"vc_create_closed_group_too_many_group_members_error" = "A closed group cannot have more than 20 members"; +"vc_create_closed_group_too_many_group_members_error" = "A closed group cannot have more than 100 members"; "vc_create_closed_group_invalid_session_id_error" = "One of the members of your group has an invalid Session ID"; "vc_join_public_chat_title" = "Join Open Group"; diff --git a/Session/Meta/Translations/es.lproj/Localizable.strings b/Session/Meta/Translations/es.lproj/Localizable.strings index 660d87848..adb113137 100644 --- a/Session/Meta/Translations/es.lproj/Localizable.strings +++ b/Session/Meta/Translations/es.lproj/Localizable.strings @@ -2638,7 +2638,7 @@ "vc_create_closed_group_empty_state_button_title" = "Empezar una Session"; "vc_create_closed_group_group_name_missing_error" = "Por favor, ingresa un nombre de grupo"; "vc_create_closed_group_group_name_too_long_error" = "Por favor, ingresa un nombre de grupo más corto"; -"vc_create_closed_group_too_many_group_members_error" = "Un grupo cerrado no puede tener más de 20 miembros"; +"vc_create_closed_group_too_many_group_members_error" = "Un grupo cerrado no puede tener más de 100 miembros"; "vc_create_closed_group_invalid_session_id_error" = "Uno de los miembros de tu grupo tiene un ID de Session no válido"; "vc_join_public_chat_title" = "Únete al grupo abierto"; diff --git a/Session/Meta/Translations/fa.lproj/Localizable.strings b/Session/Meta/Translations/fa.lproj/Localizable.strings index ae1bfa0b0..6990b5dfe 100644 --- a/Session/Meta/Translations/fa.lproj/Localizable.strings +++ b/Session/Meta/Translations/fa.lproj/Localizable.strings @@ -2638,7 +2638,7 @@ "vc_create_closed_group_empty_state_button_title" = "شروع Session"; "vc_create_closed_group_group_name_missing_error" = "لطفا یک نام گروه وارد کنید"; "vc_create_closed_group_group_name_too_long_error" = "لطفا نام گروه کوتاه‌تری وارد کنید"; -"vc_create_closed_group_too_many_group_members_error" = "یک گروه خصوصی نمی‌تواند بیش از بیست عضو داشته باشد"; +"vc_create_closed_group_too_many_group_members_error" = "یک گروه خصوصی نمی‌تواند بیش از یکصد عضو داشته باشد"; "vc_create_closed_group_invalid_session_id_error" = "یکی از اعضای گروه شما دارای شناسه نامعتبر است"; "vc_join_public_chat_title" = "به گروه باز بپیوندید"; diff --git a/Session/Meta/Translations/fr.lproj/Localizable.strings b/Session/Meta/Translations/fr.lproj/Localizable.strings index 5e8b2759b..7324948a0 100644 --- a/Session/Meta/Translations/fr.lproj/Localizable.strings +++ b/Session/Meta/Translations/fr.lproj/Localizable.strings @@ -2648,7 +2648,7 @@ "vc_create_closed_group_empty_state_button_title" = "Démarrer une session"; "vc_create_closed_group_group_name_missing_error" = "Veuillez saisir un nom de groupe"; "vc_create_closed_group_group_name_too_long_error" = "Veuillez saisir un nom de groupe plus court"; -"vc_create_closed_group_too_many_group_members_error" = "Un groupe privé ne peut pas avoir plus de 20 membres"; +"vc_create_closed_group_too_many_group_members_error" = "Un groupe privé ne peut pas avoir plus de 100 membres"; "vc_create_closed_group_invalid_session_id_error" = "Un des membres de votre groupe a un Session ID non valide"; "vc_join_public_chat_title" = "Joindre un groupe public"; diff --git a/Session/Meta/Translations/id-ID.lproj/Localizable.strings b/Session/Meta/Translations/id-ID.lproj/Localizable.strings index 2a90f7762..143e2a57b 100644 --- a/Session/Meta/Translations/id-ID.lproj/Localizable.strings +++ b/Session/Meta/Translations/id-ID.lproj/Localizable.strings @@ -2639,7 +2639,7 @@ "vc_create_closed_group_group_name_missing_error" = "Masukkan nama grup"; "vc_create_closed_group_group_name_too_long_error" = "Masukkan nama grup yang lebih pendek"; "vc_create_closed_group_not_enough_group_members_error" = "Pilih setidaknya 2 anggota grup"; -"vc_create_closed_group_too_many_group_members_error" = "Grup tertutup maksimal berisi 20 anggota"; +"vc_create_closed_group_too_many_group_members_error" = "Grup tertutup maksimal berisi 100 anggota"; "vc_create_closed_group_invalid_session_id_error" = "Salah satu anggota di grup memiliki Session ID yang salah"; "vc_join_public_chat_title" = "Gabung ke grup terbuka"; diff --git a/Session/Meta/Translations/it.lproj/Localizable.strings b/Session/Meta/Translations/it.lproj/Localizable.strings index a76836cdf..7e69c6748 100644 --- a/Session/Meta/Translations/it.lproj/Localizable.strings +++ b/Session/Meta/Translations/it.lproj/Localizable.strings @@ -2638,7 +2638,7 @@ "vc_create_closed_group_empty_state_button_title" = "Inizia una sessione"; "vc_create_closed_group_group_name_missing_error" = "Inserisci un nome per il gruppo"; "vc_create_closed_group_group_name_too_long_error" = "Inserisci un nome gruppo più breve"; -"vc_create_closed_group_too_many_group_members_error" = "Un gruppo chiuso non può avere più di 20 membri"; +"vc_create_closed_group_too_many_group_members_error" = "Un gruppo chiuso non può avere più di 100 membri"; "vc_create_closed_group_invalid_session_id_error" = "Uno dei membri del tuo gruppo ha una Sessione ID non valido"; "vc_join_public_chat_title" = "Unisciti a un gruppo aperto"; diff --git a/Session/Meta/Translations/ja.lproj/Localizable.strings b/Session/Meta/Translations/ja.lproj/Localizable.strings index a6fca3227..aa65f4d9f 100644 --- a/Session/Meta/Translations/ja.lproj/Localizable.strings +++ b/Session/Meta/Translations/ja.lproj/Localizable.strings @@ -2639,7 +2639,7 @@ "vc_create_closed_group_group_name_missing_error" = "グループ名を入力してください"; "vc_create_closed_group_group_name_too_long_error" = "短いグループ名を入力してください"; "vc_create_closed_group_not_enough_group_members_error" = "グループメンバーを少なくとも 2 人選択してください"; -"vc_create_closed_group_too_many_group_members_error" = "閉じたグループは 20 人を超えるメンバーを抱えることはできません"; +"vc_create_closed_group_too_many_group_members_error" = "閉じたグループは 100 人を超えるメンバーを抱えることはできません"; "vc_create_closed_group_invalid_session_id_error" = "グループのメンバーの 1 人の Session ID が無効です"; "vc_join_public_chat_title" = "オープングループに参加する"; diff --git a/Session/Meta/Translations/pl.lproj/Localizable.strings b/Session/Meta/Translations/pl.lproj/Localizable.strings index ac83c445a..c82df30af 100644 --- a/Session/Meta/Translations/pl.lproj/Localizable.strings +++ b/Session/Meta/Translations/pl.lproj/Localizable.strings @@ -2638,7 +2638,7 @@ "vc_create_closed_group_empty_state_button_title" = "Rozpocznij sesję"; "vc_create_closed_group_group_name_missing_error" = "Wpisz nazwę grupy"; "vc_create_closed_group_group_name_too_long_error" = "Wprowadź krótszą nazwę grupy"; -"vc_create_closed_group_too_many_group_members_error" = "Grupa zamknięta nie może mieć więcej niż 20 członków"; +"vc_create_closed_group_too_many_group_members_error" = "Grupa zamknięta nie może mieć więcej niż 100 członków"; "vc_create_closed_group_invalid_session_id_error" = "Jeden z członków Twojej grupy ma nieprawidłowy identyfikator Session"; "vc_join_public_chat_title" = "Dołącz do Open Group"; diff --git a/Session/Meta/Translations/pt_BR.lproj/Localizable.strings b/Session/Meta/Translations/pt_BR.lproj/Localizable.strings index 1c5489cb3..a6de3c8aa 100644 --- a/Session/Meta/Translations/pt_BR.lproj/Localizable.strings +++ b/Session/Meta/Translations/pt_BR.lproj/Localizable.strings @@ -2638,7 +2638,7 @@ "vc_create_closed_group_empty_state_button_title" = "Iniciar uma sessão"; "vc_create_closed_group_group_name_missing_error" = "Digite um nome de grupo"; "vc_create_closed_group_group_name_too_long_error" = "Digite um nome de grupo mais curto"; -"vc_create_closed_group_too_many_group_members_error" = "Um grupo fechado não pode ter mais de 20 membros"; +"vc_create_closed_group_too_many_group_members_error" = "Um grupo fechado não pode ter mais de 100 membros"; "vc_create_closed_group_invalid_session_id_error" = "Um dos membros do seu grupo tem um ID Session inválido"; "vc_join_public_chat_title" = "Participar em grupo aberto"; diff --git a/Session/Meta/Translations/ru.lproj/Localizable.strings b/Session/Meta/Translations/ru.lproj/Localizable.strings index 8d8a1f90f..e3400b41a 100644 --- a/Session/Meta/Translations/ru.lproj/Localizable.strings +++ b/Session/Meta/Translations/ru.lproj/Localizable.strings @@ -2638,7 +2638,7 @@ "vc_create_closed_group_empty_state_button_title" = "Начать Сессию"; "vc_create_closed_group_group_name_missing_error" = "Пожалуйста, введите название группы"; "vc_create_closed_group_group_name_too_long_error" = "Пожалуйста, введите более короткое имя группы"; -"vc_create_closed_group_too_many_group_members_error" = "В закрытой группе не может быть больше 20 участников"; +"vc_create_closed_group_too_many_group_members_error" = "В закрытой группе не может быть больше 100 участников"; "vc_create_closed_group_invalid_session_id_error" = "Один из участников вашей группы имеет недопустимый Session ID"; "vc_join_public_chat_title" = "Присоединиться к открытой группе"; diff --git a/Session/Meta/Translations/vi-VN.lproj/Localizable.strings b/Session/Meta/Translations/vi-VN.lproj/Localizable.strings index e5765a93c..5ec4fbbc9 100644 --- a/Session/Meta/Translations/vi-VN.lproj/Localizable.strings +++ b/Session/Meta/Translations/vi-VN.lproj/Localizable.strings @@ -2648,7 +2648,7 @@ "vc_create_closed_group_group_name_missing_error" = "Vui lòng nhập tên nhóm"; "vc_create_closed_group_group_name_too_long_error" = "Vui lòng nhập một tên nhóm ngắn hơn "; "vc_create_closed_group_not_enough_group_members_error" = "Vui lòng chọn ít nhất 2 thành viên trong nhóm "; -"vc_create_closed_group_too_many_group_members_error" = "Một nhóm kín không thể có nhiều hơn 20 thành viên "; +"vc_create_closed_group_too_many_group_members_error" = "Một nhóm kín không thể có nhiều hơn 100 thành viên "; "vc_create_closed_group_invalid_session_id_error" = "Một trong các thành viên trong nhóm của bạn có Session ID không hợp lệ "; "vc_join_public_chat_title" = "Tham gia nhóm mở"; diff --git a/Session/Meta/Translations/zh_CN.lproj/Localizable.strings b/Session/Meta/Translations/zh_CN.lproj/Localizable.strings index e07e05837..5bb9df603 100644 --- a/Session/Meta/Translations/zh_CN.lproj/Localizable.strings +++ b/Session/Meta/Translations/zh_CN.lproj/Localizable.strings @@ -2638,7 +2638,7 @@ "vc_create_closed_group_empty_state_button_title" = "开始对话"; "vc_create_closed_group_group_name_missing_error" = "请输入群组名称"; "vc_create_closed_group_group_name_too_long_error" = "请输入较短的群组名称"; -"vc_create_closed_group_too_many_group_members_error" = "私密群组成员不得超过20个"; +"vc_create_closed_group_too_many_group_members_error" = "私密群组成员不得超过100个"; "vc_create_closed_group_invalid_session_id_error" = "您群组中的一位成员的Session ID无效"; "vc_join_public_chat_title" = "加入公开群组"; diff --git a/SessionNotificationServiceExtension/NotificationServiceExtension.swift b/SessionNotificationServiceExtension/NotificationServiceExtension.swift index 065e6d9e0..1c3d96de5 100644 --- a/SessionNotificationServiceExtension/NotificationServiceExtension.swift +++ b/SessionNotificationServiceExtension/NotificationServiceExtension.swift @@ -2,8 +2,6 @@ import UserNotifications import SessionMessagingKit import SignalUtilitiesKit -// TODO: Group notifications - public final class NotificationServiceExtension : UNNotificationServiceExtension { private var didPerformSetup = false private var areVersionMigrationsComplete = false