mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-25 06:25:18 -04:00
Be sure to urlencode/decode event types correctly in both the web client and HS.
This commit is contained in:
parent
a2aafeb959
commit
9f6d1b10ad
3 changed files with 6 additions and 6 deletions
|
@ -238,7 +238,7 @@ describe('MatrixService', function() {
|
|||
homeserver: "http://example.com"
|
||||
});
|
||||
var roomId = "!fh38hfwfwef:example.com";
|
||||
var eventType = "com.example.events.test";
|
||||
var eventType = "com.example.events.test:special@characters";
|
||||
var content = {
|
||||
testing: "1 2 3"
|
||||
};
|
||||
|
@ -262,11 +262,11 @@ describe('MatrixService', function() {
|
|||
homeserver: "http://example.com"
|
||||
});
|
||||
var roomId = "!fh38hfwfwef:example.com";
|
||||
var eventType = "com.example.events.test";
|
||||
var eventType = "com.example.events.test:special@characters";
|
||||
var content = {
|
||||
testing: "1 2 3"
|
||||
};
|
||||
var stateKey = "version1";
|
||||
var stateKey = "version:1";
|
||||
matrixService.sendStateEvent(roomId, eventType, content, stateKey).then(
|
||||
function(response) {
|
||||
expect(response.data).toEqual({});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue