diff --git a/CHANGES.rst b/CHANGES.rst index 8694a65..8adaaf0 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,9 @@ +Changes in Matrix Angular SDK 0.6.8 (2016-02-10) +================================================ + +Bug fixes: + - Fix display of HTML bodies (SYWEB-361) + Changes in Matrix Angular SDK 0.6.7 (2015-09-09) ================================================ diff --git a/README.rst b/README.rst index 91cecd3..5494300 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,15 @@ Matrix Angular SDK ================== +.. DANGER:: + **matrix-angular-sdk is not currently being maintained or developed by the core + team, and whilst stable it has some serious performance issues; Angular makes it + a bit too easy to shoot yourself in the foot and doesn't help you escape when + you do so. All of our current focus is going into the + https://github.com/matrix-org/matrix-js-sdk, https://github.com/matrix-org/matrix-react-sdk + and https://github.com/matrix-org/matrix-react-skin stack instead - please use + those rather than this if you want support from the core team. Thanks!** + .. image:: http://matrix.org/jenkins/buildStatus/icon?job=SynapseWebClient :target: http://matrix.org/jenkins/job/SynapseWebClient/ diff --git a/package.json b/package.json index 267ba19..a9e274a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "matrix-angular-sdk", - "version": "0.6.7, + "version": "0.6.8", "description": "AngularJS SDK and example front-end client for the Matrix.org decentralised communications platform", "main": "index.js", "scripts": { @@ -24,7 +24,7 @@ "iot" ], "author": "Matrix.org", - "license": "Apache 2.0", + "license": "Apache-2.0", "bugs": { "url": "https://matrix.org/jira/browse/SYWEB" }, diff --git a/syweb/webclient/VERSION b/syweb/webclient/VERSION index 2228cad..fae59ca 100644 --- a/syweb/webclient/VERSION +++ b/syweb/webclient/VERSION @@ -1 +1 @@ -0.6.7 +0.6.8 diff --git a/syweb/webclient/app/app.css b/syweb/webclient/app/app.css index 1f0dac4..c3d73a9 100644 --- a/syweb/webclient/app/app.css +++ b/syweb/webclient/app/app.css @@ -1014,7 +1014,6 @@ input.error { .pushsection { transition: max-height linear 0.5s, opacity linear 0.5s; - max-height: 1500px; overflow: hidden; } diff --git a/syweb/webclient/app/login/login-controller.js b/syweb/webclient/app/login/login-controller.js index 4ddc49f..b29b860 100644 --- a/syweb/webclient/app/login/login-controller.js +++ b/syweb/webclient/app/login/login-controller.js @@ -22,10 +22,19 @@ angular.module('LoginController', ['matrixService']) // Assume that this is hosted on the home server, in which case the URL // contains the home server. - var hs_url = $location.protocol() + "://" + $location.host(); + var location_protocol = $location.protocol(); + var location_host = $location.host(); + var id_host = "matrix.org" + var id_url = $location.protocol() + "://" + id_host; + if (location_protocol === "file") { + location_protocol = "https"; + location_host = id_host; + id_url = location_protocol + "://" + location_host; + } + var hs_url = location_protocol + "://" + location_host; if ($location.port() && - !($location.protocol() === "http" && $location.port() === 80) && - !($location.protocol() === "https" && $location.port() === 443)) + !(location_protocol === "http" && $location.port() === 80) && + !(location_protocol=== "https" && $location.port() === 443)) { hs_url += ":" + $location.port(); } @@ -35,7 +44,7 @@ angular.module('LoginController', ['matrixService']) desired_user_name: "", user_id: "", password: "", - identityServer: $location.protocol() + "://matrix.org", + identityServer: id_url, pwd1: "", pwd2: "", }; diff --git a/syweb/webclient/app/login/register-controller.js b/syweb/webclient/app/login/register-controller.js index 449badd..48d4d11 100644 --- a/syweb/webclient/app/login/register-controller.js +++ b/syweb/webclient/app/login/register-controller.js @@ -23,10 +23,19 @@ angular.module('RegisterController', ['matrixService']) // Assume that this is hosted on the home server, in which case the URL // contains the home server. - var hs_url = $location.protocol() + "://" + $location.host(); + var location_protocol = $location.protocol(); + var location_host = $location.host(); + var id_host = "matrix.org" + var id_url = $location.protocol() + "://" + id_host; + if (location_protocol === "file") { + location_protocol = "https"; + location_host = id_host; + id_url = location_protocol + "://" + location_host; + } + var hs_url = location_protocol + "://" + location_host; if ($location.port() && - !($location.protocol() === "http" && $location.port() === 80) && - !($location.protocol() === "https" && $location.port() === 443)) + !(location_protocol === "http" && $location.port() === 80) && + !(location_protocol=== "https" && $location.port() === 443)) { hs_url += ":" + $location.port(); } @@ -51,7 +60,7 @@ angular.module('RegisterController', ['matrixService']) desired_user_id: "", desired_user_name: "", password: "", - identityServer: $location.protocol() + "://matrix.org", + identityServer: id_url, pwd1: "", pwd2: "", displayName : "", diff --git a/syweb/webclient/app/room/room.html b/syweb/webclient/app/room/room.html index 08ab971..bbc8b07 100644 --- a/syweb/webclient/app/room/room.html +++ b/syweb/webclient/app/room/room.html @@ -230,12 +230,12 @@ class="message" fix-width="false && msg.e.user_id === state.user_id" ng-class="shouldHighlightEvent(msg.event) && msg.e.user_id != state.user_id ? msg.css_class + ' messageBing' : msg.css_class" - ng-bind-html="(msg.e.content.format === 'org.matrix.custom.html') ? (msg.e.content.formatted_body | unsanitizedLinky:'_blank') : (msg.e.content.body | escapeHTML | unsanitizedLinky:'_blank') "/> + ng-bind-html="(msg.e.content.format === 'org.matrix.custom.html') ? (msg.e.content.formatted_body) : (msg.e.content.body | escapeHTML | unsanitizedLinky:'_blank') "/> + ng-bind-html="(msg.e.content.format === 'org.matrix.custom.html') ? (msg.e.content.formatted_body) : (msg.e.content.body | escapeHTML | unsanitizedLinky:'_blank') "/>