diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-12-15 03:19:33 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-12-15 03:19:33 +0100 |
commit | 37fbcaf07b205cc0bb89690a415cd06a2814d1a4 (patch) | |
tree | 5db18d392838ec785e8867e9b761919e4f79a353 /src/ChatPage.h | |
parent | Reduce overhead of Cache.h (diff) | |
download | nheko-37fbcaf07b205cc0bb89690a415cd06a2814d1a4.tar.xz |
Reduce includes of MatrixClient.h, as it is the most expensive header
Diffstat (limited to 'src/ChatPage.h')
-rw-r--r-- | src/ChatPage.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ChatPage.h b/src/ChatPage.h index 6337f800..a7fb31a8 100644 --- a/src/ChatPage.h +++ b/src/ChatPage.h @@ -23,6 +23,7 @@ #include <mtx/common.hpp> #include <mtx/responses.hpp> +#include <mtxclient/http/errors.hpp> #include <QFrame> #include <QHBoxLayout> @@ -34,7 +35,6 @@ #include "CacheStructs.h" #include "CommunitiesList.h" -#include "MatrixClient.h" #include "Utils.h" #include "notifications/Manager.h" #include "popups/UserMentions.h" @@ -56,6 +56,10 @@ constexpr int CONSENSUS_TIMEOUT = 1000; constexpr int SHOW_CONTENT_TIMEOUT = 3000; constexpr int TYPING_REFRESH_TIMEOUT = 10000; +namespace mtx::http { +using RequestErr = const std::optional<mtx::http::ClientError> &; +} + class ChatPage : public QWidget { Q_OBJECT |