Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
AuthVC: Add a comment about the fallback registration issue on the ho…
Browse files Browse the repository at this point in the history
  • Loading branch information
manuroe committed Feb 27, 2019
1 parent 90cdeac commit 5765fe3
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)
if ([@"onRegistered" isEqualToString:parameters[@"action"]])
{
// Translate the JS registration event to MXCredentials
// We cannot use [MXCredentials modelFromJSON:] because of https://github.com/matrix-org/synapse/issues/4756
// Because of this, we cannot get the device_id allocated by the homeserver
// TODO: Fix it once the homeserver issue is fixed
MXCredentials *credentials = [[MXCredentials alloc] initWithHomeServer:parameters[@"homeServer"] userId:parameters[@"userId"] accessToken:parameters[@"accessToken"]];

// And inform the client
onSuccess(credentials);
}
Expand Down

0 comments on commit 5765fe3

Please sign in to comment.