0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-11 06:28:55 +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 const bool v1
{ {
startswith(request.head.path, "/_matrix/federation/v1/") request.version == "v1"
}; };
if(request.parv.size() < 1) if(request.parv.size() < 1)
@ -152,7 +152,7 @@ put__send_join(client &client,
.fetch = false, .fetch = false,
// Whether to conduct join amplification. // Whether to conduct join amplification.
.amplify = .amplify = bool
{ {
// This is required by the spec, but... // This is required by the spec, but...
true true