mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 08:23:56 +01:00
modules/federation: Remove these unnecessary checks.
This commit is contained in:
parent
3099997049
commit
d70e46718b
2 changed files with 0 additions and 16 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue