0
0
Fork 0
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:
Jason Volk 2023-03-06 18:43:01 -08:00
parent 1d58cd2266
commit 48950bf1c9

View file

@ -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