summary refs log tree commit diff
path: root/syweb/webclient
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-11-05 11:28:22 +0000
committerKegan Dougal <kegan@matrix.org>2014-11-05 11:28:22 +0000
commit42081b1937127979f3fb0a673eefb866cb4de64e (patch)
tree3080249fc341db2dd61b607dd78b08d89d6e3b04 /syweb/webclient
parentBe sure to urlencode/decode event types correctly in both the web client and HS. (diff)
downloadsynapse-42081b1937127979f3fb0a673eefb866cb4de64e.tar.xz
Don't urlencode event types just yet so older HSes don't 500.
Skip the tests which test for urlencoding, and add a TODO
in matrixService.
Diffstat (limited to 'syweb/webclient')
-rw-r--r--syweb/webclient/components/matrix/matrix-service.js4
-rw-r--r--syweb/webclient/test/unit/matrix-service.spec.js4
2 files changed, 5 insertions, 3 deletions
diff --git a/syweb/webclient/components/matrix/matrix-service.js b/syweb/webclient/components/matrix/matrix-service.js
index e1e5b88b3e..8ff2999e2d 100644
--- a/syweb/webclient/components/matrix/matrix-service.js
+++ b/syweb/webclient/components/matrix/matrix-service.js
@@ -375,7 +375,9 @@ angular.module('matrixService', [])
         
         
         sendStateEvent: function(room_id, eventType, content, state_key) {
-            var path = "/rooms/$room_id/state/"+ encodeURIComponent(eventType);
+            var path = "/rooms/$room_id/state/"+ eventType;
+            // TODO: uncomment this when matrix.org is updated, else all state events 500.
+            // var path = "/rooms/$room_id/state/"+ encodeURIComponent(eventType);
             if (state_key !== undefined) {
                 path += "/" + encodeURIComponent(state_key);
             }
diff --git a/syweb/webclient/test/unit/matrix-service.spec.js b/syweb/webclient/test/unit/matrix-service.spec.js
index b54163a641..ed290f2ff3 100644
--- a/syweb/webclient/test/unit/matrix-service.spec.js
+++ b/syweb/webclient/test/unit/matrix-service.spec.js
@@ -231,7 +231,7 @@ describe('MatrixService', function() {
         httpBackend.flush();
     }));
     
-    it('should be able to send generic state events without a state key', inject(
+    xit('should be able to send generic state events without a state key', inject(
     function(matrixService) {
         matrixService.setConfig({
             access_token: "foobar",
@@ -255,7 +255,7 @@ describe('MatrixService', function() {
         httpBackend.flush();
     }));
     
-    it('should be able to send generic state events with a state key', inject(
+    xit('should be able to send generic state events with a state key', inject(
     function(matrixService) {
         matrixService.setConfig({
             access_token: "foobar",