mirror of
https://github.com/matrix-construct/construct
synced 2024-05-15 17:33:46 +02:00
modules/federation/send_join: Use parsed version; fix braced scalar init (clang).
This commit is contained in:
parent
1d58cd2266
commit
48950bf1c9
|
@ -60,7 +60,7 @@ put__send_join(client &client,
|
|||
{
|
||||
const bool v1
|
||||
{
|
||||
startswith(request.head.path, "/_matrix/federation/v1/")
|
||||
request.version == "v1"
|
||||
};
|
||||
|
||||
if(request.parv.size() < 1)
|
||||
|
@ -152,7 +152,7 @@ put__send_join(client &client,
|
|||
.fetch = false,
|
||||
|
||||
// Whether to conduct join amplification.
|
||||
.amplify =
|
||||
.amplify = bool
|
||||
{
|
||||
// This is required by the spec, but...
|
||||
true
|
||||
|
|
Loading…
Reference in a new issue