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