summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-15 19:09:08 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-07-15 19:09:08 +0300
commit33490eddab385ca488b11d6d50683ddb6a18da6c (patch)
treef597b53c3baf0c96a0d7226f28f50740acd8b256 /include
parentUser reverse iterator instead of while loop (diff)
downloadnheko-33490eddab385ca488b11d6d50683ddb6a18da6c.tar.xz
Remove the v2 namespace from the http client
Diffstat (limited to 'include')
-rw-r--r--include/MatrixClient.h2
-rw-r--r--include/timeline/TimelineView.h2
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;