Files
Morgan Pretty b6c4d9a935 Fixed a number of issues found during testing, cleaned up code
• Started adding dev settings to enable deterministic encryption and set a custom file server for testing
• Fixed a bug where the display picture upload would never dismiss the loader
• Fixed a bug where we were using the wrong legacy encryption for the display picture
2025-10-07 16:50:42 +11:00

16 lines
327 B
Swift

// Copyright © 2025 Rangeproof Pty Ltd. All rights reserved.
import Foundation
public enum Update<T> {
case set(to: T)
case useExisting
public func or(_ existing: T) -> T {
switch self {
case .set(let value): return value
case .useExisting: return existing
}
}
}