From 5b1e19dd2ec1354d2a0ad221009a0b39c5de2967 Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Wed, 28 Sep 2022 18:28:25 +1000 Subject: [PATCH] Increased the max username length from 26 bytes to 64 bytes --- SessionMessagingKit/Utilities/ProfileManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SessionMessagingKit/Utilities/ProfileManager.swift b/SessionMessagingKit/Utilities/ProfileManager.swift index 39359b97a..ba5212d30 100644 --- a/SessionMessagingKit/Utilities/ProfileManager.swift +++ b/SessionMessagingKit/Utilities/ProfileManager.swift @@ -9,7 +9,7 @@ import SessionUtilitiesKit public struct ProfileManager { // The max bytes for a user's profile name, encoded in UTF8. // Before encrypting and submitting we NULL pad the name data to this length. - private static let nameDataLength: UInt = 26 + private static let nameDataLength: UInt = 64 public static let maxAvatarDiameter: CGFloat = 640 private static var profileAvatarCache: Atomic<[String: Data]> = Atomic([:])