From f47435ba3a1789eca5da09a06ed3cf2f7812c714 Mon Sep 17 00:00:00 2001 From: kate-signal Date: Mon, 9 Feb 2026 16:50:10 -0500 Subject: [PATCH] trim Member labels to glyph/byte count instead of throwing --- SignalServiceKit/Groups/GroupV2Params.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/SignalServiceKit/Groups/GroupV2Params.swift b/SignalServiceKit/Groups/GroupV2Params.swift index 9a6f7fb8b2..a86d072d4b 100644 --- a/SignalServiceKit/Groups/GroupV2Params.swift +++ b/SignalServiceKit/Groups/GroupV2Params.swift @@ -296,10 +296,7 @@ public extension GroupV2Params { func decryptMemberLabel(_ ciphertext: Data) throws -> String? { do { let decryptedLabel = try decryptString(ciphertext) - guard decryptedLabel.lengthOfBytes(using: .utf8) <= 96 else { - throw OWSAssertionError("member label is too long.") - } - return decryptedLabel.filterStringForDisplay() + return decryptedLabel.filterStringForDisplay().trimToGlyphCount(24).trimToUtf8ByteCount(96) } catch { owsFailDebug("Error: \(error)") throw error