mirror of
https://github.com/matrix-construct/construct
synced 2024-11-28 17:52:54 +01:00
modules/federation/invite: Fix invite request routing to proper handler version.
This commit is contained in:
parent
517f109f3a
commit
ee52a9f24b
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ m::resource::response
|
|||
put__invite(client &client,
|
||||
const m::resource::request &request)
|
||||
{
|
||||
if(request.version != "v1")
|
||||
return put__invite2(client, request);
|
||||
|
||||
if(request.parv.size() < 1)
|
||||
throw m::NEED_MORE_PARAMS
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue