2 files changed, 1 insertions, 3 deletions
diff --git a/include/MatrixClient.h b/include/MatrixClient.h
index cf1ee8ed..12bba889 100644
--- a/include/MatrixClient.h
+++ b/include/MatrixClient.h
@@ -18,13 +18,11 @@ Q_DECLARE_METATYPE(std::vector<std::string>)
Q_DECLARE_METATYPE(std::vector<QString>)
namespace http {
-namespace v2 {
mtx::http::Client *
client();
bool
is_logged_in();
-}
//! Initialize the http module
void
diff --git a/include/timeline/TimelineView.h b/include/timeline/TimelineView.h
index c6ddafd6..97bac51a 100644
--- a/include/timeline/TimelineView.h
+++ b/include/timeline/TimelineView.h
@@ -343,7 +343,7 @@ TimelineView::addUserMessage(const QString &url,
PendingMessage message;
message.ty = MsgType;
- message.txn_id = http::v2::client()->generate_txn_id();
+ message.txn_id = http::client()->generate_txn_id();
message.body = url;
message.filename = trimmed;
message.mime = mime;
|