Skip to content

Commit

Permalink
MXIdentityService: Fix crash in handleHTTPClientError
Browse files Browse the repository at this point in the history
  • Loading branch information
manuroe committed May 27, 2020
1 parent 0c41cbc commit 04b4d58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Improvements:

Bug fix:
* MXSecretShareManager: Fix crash in cancelRequestWithRequestId (vector-im/riot-ios/issues/3272).
* MXIdentityService: Fix crash in handleHTTPClientError (vector-im/riot-ios/issues/3273).

Changes in Matrix iOS SDK in 0.16.5 (2020-05-18)
================================================
Expand Down
1 change: 1 addition & 0 deletions MatrixSDK/IdentityServer/MXIdentityService.m
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ - (void)handleHTTPClientError:(NSNotification*)nofitication
NSString *accessToken = self.restClient.accessToken;

if (httpClient
&& self.identityServer
&& [httpClient.baseURL.absoluteString hasPrefix:self.identityServer]
&& [mxError.errcode isEqualToString:kMXErrCodeStringTermsNotSigned] && accessToken)
{
Expand Down

0 comments on commit 04b4d58

Please sign in to comment.