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.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc

index 0eb4658a..d4ab8e33 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc
@@ -3,7 +3,7 @@ #include <memory> namespace { -auto v2_client_ = std::make_shared<mtx::http::Client>("matrix.org"); +auto v2_client_ = std::make_shared<mtx::http::Client>(); } namespace http { @@ -15,6 +15,12 @@ client() return v2_client_.get(); } +bool +is_logged_in() +{ + return !v2_client_->access_token().empty(); +} + } // namespace v2 void