summary refs log tree commit diff
path: root/syweb/webclient/components
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/components
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/components')
-rw-r--r--syweb/webclient/components/matrix/matrix-service.js4
1 files changed, 3 insertions, 1 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);
             }