diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-11-05 11:28:22 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-11-05 11:28:22 +0000 |
commit | 42081b1937127979f3fb0a673eefb866cb4de64e (patch) | |
tree | 3080249fc341db2dd61b607dd78b08d89d6e3b04 /syweb/webclient/components | |
parent | Be sure to urlencode/decode event types correctly in both the web client and HS. (diff) | |
download | synapse-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.js | 4 |
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); } |