Various fixes

This commit is contained in:
Ilya Laktyushin
2022-06-21 15:57:37 +05:00
parent 009d2445d2
commit a22cf29e19
14 changed files with 71 additions and 47 deletions

View File

@@ -90,8 +90,8 @@ public extension TelegramEngine {
return _internal_updateTwoStepVerificationPassword(network: self.account.network, currentPassword: currentPassword, updatedPassword: updatedPassword)
}
public func deleteAccount() -> Signal<Never, DeleteAccountError> {
return self.account.network.request(Api.functions.account.deleteAccount(reason: "GDPR"))
public func deleteAccount(reason: String) -> Signal<Never, DeleteAccountError> {
return self.account.network.request(Api.functions.account.deleteAccount(reason: reason))
|> mapError { _ -> DeleteAccountError in
return .generic
}