mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-11 17:03:10 -06:00
Use gomatrixserverlib.RespInvite
This commit is contained in:
parent
c9e915978e
commit
4d51bffcae
|
|
@ -101,11 +101,6 @@ func Invite(
|
|||
// the other servers in the room that we have been invited.
|
||||
return util.JSONResponse{
|
||||
Code: 200,
|
||||
// The response to /invite is the signed event but this is returned as
|
||||
// the second element of a two element list where the first element is
|
||||
// the constant integer 200.
|
||||
// (This protocol oddity is the result of a typo in the synapse matrix
|
||||
// server, and is preserved to maintain compatibility.)
|
||||
JSON: []interface{}{200, &signedEvent},
|
||||
JSON: gomatrixserverlib.RespInvite{Event: signedEvent},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue