From 462a5392cb614c8ac6099a5c429883e39171edc2 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Fri, 29 May 2026 18:23:11 +0400 Subject: [PATCH] comment --- src/Simplex/Chat/Protocol.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Simplex/Chat/Protocol.hs b/src/Simplex/Chat/Protocol.hs index 8943834234..4bc7b70eb5 100644 --- a/src/Simplex/Chat/Protocol.hs +++ b/src/Simplex/Chat/Protocol.hs @@ -890,7 +890,9 @@ maxCompressedMsgLength = 13380 maxDecompressedMsgLength :: Int maxDecompressedMsgLength = 65536 --- Bound on moderators + admins so the signed roster always fits one message. +-- Bound so the signed roster fits maxEncodedMsgLength (15602 B): ~140 B per +-- RosterMember (memberId + Ed25519 key both base64, role, name capped at 16 +-- chars by memberShortenedName). Fits 64 entries even with 4-byte-UTF-8 names. maxGroupRosterSize :: Int maxGroupRosterSize = 64