From 37fbcaf07b205cc0bb89690a415cd06a2814d1a4 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 15 Dec 2019 03:19:33 +0100 Subject: Reduce includes of MatrixClient.h, as it is the most expensive header --- src/ChatPage.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ChatPage.h') 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 #include +#include #include #include @@ -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 &; +} + class ChatPage : public QWidget { Q_OBJECT -- cgit 1.5.1