From da01bd3ce43aec966167de84d1f820d90cd3fe18 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 7 Mar 2017 17:39:24 +0000 Subject: [PATCH] More notes --- .../matrix-org/dendrite/clientapi/writers/createroom.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/github.com/matrix-org/dendrite/clientapi/writers/createroom.go b/src/github.com/matrix-org/dendrite/clientapi/writers/createroom.go index 0f4897174..d95199109 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/writers/createroom.go +++ b/src/github.com/matrix-org/dendrite/clientapi/writers/createroom.go @@ -98,5 +98,12 @@ func CreateRoom(req *http.Request) util.JSONResponse { // This differs from Synapse slightly. Synapse would vary the ordering of 3-7 // depending on if those events were in "initial_state" or not. This made it // harder to reason about, hence sticking to a strict static ordering. + + // f.e event: + // - validate required keys/types (EventValidator in synapse) + // - set additional keys (displayname/avatar_url for m.room.member) + // - set token(?) and txn id + // - then https://github.com/matrix-org/synapse/blob/v0.19.2/synapse/handlers/message.py#L419 + return util.MessageResponse(404, "Not implemented yet") }