mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-05 19:28:46 +02:00
macos
This commit is contained in:
parent
3c939d0c87
commit
8a62072984
2 changed files with 8 additions and 0 deletions
|
|
@ -19,6 +19,10 @@ public extension TelegramEngine {
|
|||
_internal_addAppLogEvent(postbox: self.account.postbox, time: time, type: type, peerId: nil, data: data)
|
||||
}
|
||||
|
||||
public func addAppLogEvent(time: Double = Date().timeIntervalSince1970, type: String, peerId: EnginePeer.Id?, data: JSON = .dictionary([:])) {
|
||||
_internal_addAppLogEvent(postbox: self.account.postbox, time: time, type: type, peerId: peerId, data: data)
|
||||
}
|
||||
|
||||
public func requestChangeAccountPhoneNumberVerification(apiId: Int32, apiHash: String, phoneNumber: String, pushNotificationConfiguration: AuthorizationCodePushNotificationConfiguration?, firebaseSecretStream: Signal<[String: String], NoError>) -> Signal<ChangeAccountPhoneNumberData, RequestChangeAccountPhoneNumberVerificationError> {
|
||||
return _internal_requestChangeAccountPhoneNumberVerification(account: self.account, apiId: apiId, apiHash: apiHash, phoneNumber: phoneNumber, pushNotificationConfiguration: pushNotificationConfiguration, firebaseSecretStream: firebaseSecretStream)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,10 @@ public struct SecureIdValueAccessContext: Equatable {
|
|||
}
|
||||
}
|
||||
|
||||
public func generateSecureIdValueEmptyAccessContext() -> SecureIdValueAccessContext? {
|
||||
return SecureIdValueAccessContext(secret: Data(), id: 0)
|
||||
}
|
||||
|
||||
public func generateSecureIdValueAccessContext() -> SecureIdValueAccessContext? {
|
||||
guard let secret = generateSecureSecretData() else {
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue