|
|
@ -9,7 +9,7 @@ import SessionUtilitiesKit
|
|
|
|
public struct ProfileManager {
|
|
|
|
public struct ProfileManager {
|
|
|
|
// The max bytes for a user's profile name, encoded in UTF8.
|
|
|
|
// 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.
|
|
|
|
// 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
|
|
|
|
public static let maxAvatarDiameter: CGFloat = 640
|
|
|
|
|
|
|
|
|
|
|
|
private static var profileAvatarCache: Atomic<[String: Data]> = Atomic([:])
|
|
|
|
private static var profileAvatarCache: Atomic<[String: Data]> = Atomic([:])
|
|
|
|