summary refs log tree commit diff
path: root/src/ChatPage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChatPage.h')
-rw-r--r--src/ChatPage.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ChatPage.h b/src/ChatPage.h
index 13621b23..910ccd1e 100644
--- a/src/ChatPage.h
+++ b/src/ChatPage.h
@@ -203,6 +203,13 @@ private:
     void loadStateFromCache();
     void resetUI();
 
+    // returns if the user had no interaction with Nheko for quite a while, which means we set our
+    // presence to unavailable if automatic presence is enabled
+    bool shouldBeUnavailable() const;
+    // If we should throttle sync processing to reduce CPU load, if people are spamming messages and
+    // we aren't looking
+    bool shouldThrottleSync() const;
+
     template<class Collection>
     Memberships getMemberships(const std::vector<Collection> &events) const;