Skip to content

Commit

Permalink
Merge pull request #755 from tchapgouv/718-mainlining-update-account_…
Browse files Browse the repository at this point in the history
…validity-requests

 [Mainlining] Update account_validity requests #718
  • Loading branch information
NicolasBuquet authored Apr 17, 2023
2 parents dca66f4 + 20dd357 commit 02600af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tchap/Managers/AccountValidity/AccountValidityService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ final class AccountValidityService: AccountValidityServiceType {
}

self.credentials = credentials
self.httpClient = MXHTTPClient(baseURL: "\(homeServer)/\(kMXAPIPrefixPathUnstable)",
self.httpClient = MXHTTPClient(baseURL: "\(homeServer)/_synapse/client",
authenticated: true,
andOnUnrecognizedCertificateBlock: nil)

Expand All @@ -52,7 +52,7 @@ final class AccountValidityService: AccountValidityServiceType {
}

func requestRenewalEmail(completion: @escaping (MXResponse<Void>) -> Void) -> MXHTTPOperation? {
return httpClient.request(withMethod: "POST", path: "account_validity/send_mail", parameters: nil, success: { (response: [AnyHashable: Any]?) in
return httpClient.request(withMethod: "POST", path: "email_account_validity/send_mail", parameters: nil, success: { (response: [AnyHashable: Any]?) in
MXLog.debug("[AccountValidityService] request renewal email succeeded")
completion(.success(Void()))
}, failure: { (error: Error?) in
Expand Down
1 change: 1 addition & 0 deletions changelog.d/718.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Mainlining] Update account_validity requests

0 comments on commit 02600af

Please sign in to comment.