From 48950bf1c98775a11eb8253cc5a747ec2e0a695e Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 6 Mar 2023 18:43:01 -0800 Subject: [PATCH] modules/federation/send_join: Use parsed version; fix braced scalar init (clang). --- modules/federation/send_join.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/federation/send_join.cc b/modules/federation/send_join.cc index bbe1914f6..27291356f 100644 --- a/modules/federation/send_join.cc +++ b/modules/federation/send_join.cc @@ -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