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.
This commit is contained in:
parent
9f6d1b10ad
commit
42081b1937
|
@ -375,7 +375,9 @@ angular.module('matrixService', [])
|
||||||
|
|
||||||
|
|
||||||
sendStateEvent: function(room_id, eventType, content, state_key) {
|
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) {
|
if (state_key !== undefined) {
|
||||||
path += "/" + encodeURIComponent(state_key);
|
path += "/" + encodeURIComponent(state_key);
|
||||||
}
|
}
|
||||||
|
|
|
@ -231,7 +231,7 @@ describe('MatrixService', function() {
|
||||||
httpBackend.flush();
|
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) {
|
function(matrixService) {
|
||||||
matrixService.setConfig({
|
matrixService.setConfig({
|
||||||
access_token: "foobar",
|
access_token: "foobar",
|
||||||
|
@ -255,7 +255,7 @@ describe('MatrixService', function() {
|
||||||
httpBackend.flush();
|
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) {
|
function(matrixService) {
|
||||||
matrixService.setConfig({
|
matrixService.setConfig({
|
||||||
access_token: "foobar",
|
access_token: "foobar",
|
||||||
|
|
Loading…
Reference in New Issue