mirror of
https://github.com/lux-tel/session-ios.git
synced 2026-10-30 20:38:32 +00:00
• 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
16 lines
327 B
Swift
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
|
|
}
|
|
}
|
|
}
|