From f389fd47259dd118653bb855371f952716e2cb73 Mon Sep 17 00:00:00 2001 From: isopod-a Date: Sun, 23 Feb 2025 12:49:54 +0100 Subject: [PATCH] increase maximum description lenght in UI In the UI input, the number of glyphs is currently limited to 480 (with 8k max bytes). For larger groups with guidelines, more space is needed. This patch increases the number of glyphs and bytes by a factor of eight to 3840 and 65536. Signal community feature request: https://community.signalusers.org/t/expand-the-group-chat-description-or-pin-posts/65179 --- .../securesms/profiles/edit/CreateProfileFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/profiles/edit/CreateProfileFragment.java b/app/src/main/java/org/thoughtcrime/securesms/profiles/edit/CreateProfileFragment.java index 2d6f93725b9..843f2b1f079 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/profiles/edit/CreateProfileFragment.java +++ b/app/src/main/java/org/thoughtcrime/securesms/profiles/edit/CreateProfileFragment.java @@ -60,8 +60,8 @@ public class CreateProfileFragment extends LoggingFragment { private static final String TAG = Log.tag(CreateProfileFragment.class); - private static final int MAX_DESCRIPTION_GLYPHS = 480; - private static final int MAX_DESCRIPTION_BYTES = 8192; + private static final int MAX_DESCRIPTION_GLYPHS = 3840; + private static final int MAX_DESCRIPTION_BYTES = 65536; private Intent nextIntent;