diff --git a/CHANGES.rst b/CHANGES.rst index 100fb54b0..0e05cb36a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,9 @@ +Changes in 0.11.5 (2020-xx-xx) +=============================================== + +Bug fix: + * AuthenticationViewController: Adapt UIWebView changes in MatrixKit (PR #3242). + Changes in 0.11.4 (2020-05-08) =============================================== diff --git a/Riot/Modules/Authentication/AuthenticationViewController.xib b/Riot/Modules/Authentication/AuthenticationViewController.xib index c9106569d..b97dc1c03 100644 --- a/Riot/Modules/Authentication/AuthenticationViewController.xib +++ b/Riot/Modules/Authentication/AuthenticationViewController.xib @@ -13,7 +13,7 @@ - + @@ -466,23 +466,20 @@ Clear it if you're finished using this device, or want to sign in to another acc - + - - - - - + + - - + + + - - + diff --git a/Riot/Modules/Home/Fallback/AuthFallBackViewController.m b/Riot/Modules/Home/Fallback/AuthFallBackViewController.m index 1955779af..102ef2c5c 100644 --- a/Riot/Modules/Home/Fallback/AuthFallBackViewController.m +++ b/Riot/Modules/Home/Fallback/AuthFallBackViewController.m @@ -18,7 +18,7 @@ #import "AppDelegate.h" -// Generic method to make a bridge between JS and the UIWebView +// Generic method to make a bridge between JS and the WKWebView NSString *FallBackViewControllerJavascriptSendObjectMessage = @"window.sendObjectMessage = function(parameters) { \ var iframe = document.createElement('iframe'); \ iframe.setAttribute('src', 'js:' + JSON.stringify(parameters)); \ @@ -154,7 +154,7 @@ NSString *FallBackViewControllerJavascriptOnLogin = @"window.matrixLogin.onLogin // `didReceiveScriptMessage` delegate to manage the JS<->Native bridge if ([urlString hasPrefix:@"js:"]) { - // Listen only to scheme of the JS-UIWebView bridge + // Listen only to scheme of the JS-WKWebView bridge NSString *jsonString = [[[urlString componentsSeparatedByString:@"js:"] lastObject] stringByReplacingPercentEscapesUsingEncoding:NSASCIIStringEncoding]; NSData *jsonData = [jsonString dataUsingEncoding:NSUTF8StringEncoding];