summary refs log tree commit diff
path: root/src/MatrixClient.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/MatrixClient.cc')
-rw-r--r--src/MatrixClient.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc

index 9e69dbbd..e41c66c1 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc
@@ -3,26 +3,23 @@ #include <memory> namespace { -auto v2_client_ = std::make_shared<mtx::http::Client>(); +auto client_ = std::make_shared<mtx::http::Client>(); } namespace http { -namespace v2 { mtx::http::Client * client() { - return v2_client_.get(); + return client_.get(); } bool is_logged_in() { - return !v2_client_->access_token().empty(); + return !client_->access_token().empty(); } -} // namespace v2 - void init() {