From 5a6ea8d540abf71b52ef55d84b9faf885d96b54b Mon Sep 17 00:00:00 2001
From: Joseph Donofry <joedonofry@gmail.com>
Date: Sun, 18 Apr 2021 16:15:47 -0400
Subject: [PATCH] Prepare 0.5.0 release

---
 CMakeLists.txt                     | 4 ++--
 include/mtxclient/http/session.hpp | 2 +-
 lib/structs/events/create.cpp      | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0a60266fa..d486b160d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,12 +32,12 @@ option(USE_BUNDLED_OPENSSL "Use the bundled version of OpenSSL."
 
 if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
 project(matrix_client
-	VERSION 0.4.1
+	VERSION 0.5.0
 	DESCRIPTION "Client API library for Matrix, built on top of Boost.Asio"
 	HOMEPAGE_URL https://github.com/Nheko-Reborn/mtxclient)
 else()
 project(matrix_client
-	VERSION 0.4.1
+	VERSION 0.5.0
 	DESCRIPTION "Client API library for Matrix, built on top of Boost.Asio")
 endif()
 
diff --git a/include/mtxclient/http/session.hpp b/include/mtxclient/http/session.hpp
index 343aa3c69..80d6793b3 100644
--- a/include/mtxclient/http/session.hpp
+++ b/include/mtxclient/http/session.hpp
@@ -96,7 +96,7 @@ setup_headers(mtx::http::Session *session,
               const std::string &content_type       = "",
               const std::string &endpoint_namespace = "/_matrix")
 {
-        session->request.set(boost::beast::http::field::user_agent, "mtxclient v0.4.1");
+        session->request.set(boost::beast::http::field::user_agent, "mtxclient v0.5.0");
         session->request.set(boost::beast::http::field::accept_encoding, "gzip,deflate");
         session->request.set(boost::beast::http::field::host, session->host);
 
diff --git a/lib/structs/events/create.cpp b/lib/structs/events/create.cpp
index 714ba7ed2..6cf7861d3 100644
--- a/lib/structs/events/create.cpp
+++ b/lib/structs/events/create.cpp
@@ -44,8 +44,8 @@ from_json(const json &obj, Create &create)
 void
 to_json(json &obj, const Create &create)
 {
-        obj["creator"]      = create.creator;
-        obj["m.federate"]   = create.federate;
+        obj["creator"]    = create.creator;
+        obj["m.federate"] = create.federate;
         if (create.room_version.empty())
                 obj["room_version"] = "1";
         else
-- 
GitLab