Increased the max username length from 26 bytes to 64 bytes

This commit is contained in:
Morgan Pretty 2022-09-28 18:28:25 +10:00
parent 37124c2185
commit 5b1e19dd2e
1 changed files with 1 additions and 1 deletions

View File

@ -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([:])