From d873b56fd43e42e9dbbe1f1967ee262d896f868c Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Thu, 21 Jan 2021 10:17:07 +1100 Subject: [PATCH] Add missing closed group size check --- Session/Closed Groups/EditClosedGroupVC.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Session/Closed Groups/EditClosedGroupVC.swift b/Session/Closed Groups/EditClosedGroupVC.swift index a4b7f99de..c0d7f0af1 100644 --- a/Session/Closed Groups/EditClosedGroupVC.swift +++ b/Session/Closed Groups/EditClosedGroupVC.swift @@ -257,6 +257,9 @@ final class EditClosedGroupVC : BaseVC, UITableViewDataSource, UITableViewDelega return showError(title: "Couldn't Update Group", message: "Can't leave while adding or removing other members.") } } + guard members.count <= 100 else { + return showError(title: NSLocalizedString("vc_create_closed_group_too_many_group_members_error", comment: "")) + } Storage.write(with: { [weak self] transaction in do { if !members.contains(getUserHexEncodedPublicKey()) {