Integrations: Make code support use of an integration manager other than modular/scalar.

The default value is still modular/scalar.
This commit is contained in:
manuroe
2019-06-21 10:23:10 +02:00
parent be7865a3eb
commit 3538ebf484
7 changed files with 226 additions and 33 deletions

View File

@@ -190,7 +190,7 @@ NSString *const kJavascriptSendResponseToPostMessageAPI = @"riotIOS.sendResponse
NSLog(@"[WidgetVC] decidePolicyForNavigationResponse: statusCode: %@", @(response.statusCode));
}
if (response.statusCode == 403 && [WidgetManager isScalarUrl:self.URL])
if (response.statusCode == 403 && [[WidgetManager sharedManager] isScalarUrl:self.URL forUser:self.widget.mxSession.myUser.userId])
{
[self fixScalarToken];
}