mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-30 17:31:58 +00:00
24 lines
507 B
Swift
24 lines
507 B
Swift
import Foundation
|
|
#if os(macOS)
|
|
import SwiftSignalKitMac
|
|
#else
|
|
import SwiftSignalKit
|
|
#endif
|
|
|
|
public enum PostboxAuthorizationChallenge {
|
|
case numericPassword(length: Int32)
|
|
case arbitraryPassword()
|
|
}
|
|
|
|
public enum PostboxAccess {
|
|
case unlocked(Postbox)
|
|
case locked(PostboxAuthorizationChallenge)
|
|
}
|
|
|
|
public func accessPostbox(basePath: String, password: String?) -> Signal<PostboxAccess, NoError> {
|
|
return Signal { subscriber in
|
|
return ActionDisposable {
|
|
}
|
|
}
|
|
}
|