0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-05 10:08:36 +02:00

modules/federation: Remove these unnecessary checks.

This commit is contained in:
Jason Volk 2019-03-03 16:49:51 -08:00
parent 3099997049
commit d70e46718b
2 changed files with 0 additions and 16 deletions

View file

@ -50,14 +50,6 @@ put__send_join(client &client,
url::decode(room_id, request.parv[0])
};
if(!my_host(room_id.host()))
throw m::error
{
http::FORBIDDEN, "M_INVALID_ROOM_ID",
"Can only send_join for rooms on my host '%s'",
my_host()
};
if(request.parv.size() < 2)
throw m::NEED_MORE_PARAMS
{

View file

@ -50,14 +50,6 @@ put__send_leave(client &client,
url::decode(room_id, request.parv[0])
};
if(!my_host(room_id.host()))
throw m::error
{
http::FORBIDDEN, "M_INVALID_ROOM_ID",
"Can only send_leave for rooms on my host '%s'",
my_host()
};
if(request.parv.size() < 2)
throw m::NEED_MORE_PARAMS
{