summary refs log tree commit diff
path: root/src/ChatPage.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-06-08 01:45:24 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-06-08 01:59:05 +0200
commit96f4169be97715e6b6b45663492e3791ba21ae09 (patch)
tree618753677e69ac590aa2cad267dfd7d31c574bfd /src/ChatPage.h
parentSmooth scaling for images (diff)
downloadnheko-96f4169be97715e6b6b45663492e3791ba21ae09.tar.xz
Show presence and set custom status messages
Diffstat (limited to 'src/ChatPage.h')
-rw-r--r--src/ChatPage.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ChatPage.h b/src/ChatPage.h
index 83b4e76d..72fc3b81 100644
--- a/src/ChatPage.h
+++ b/src/ChatPage.h
@@ -89,6 +89,11 @@ public:
         void initiateLogout();
         void focusMessageInput();
 
+        QString status() const;
+        void setStatus(const QString &status);
+
+        mtx::presence::PresenceState currentPresence() const { return mtx::presence::online; }
+
 public slots:
         void leaveRoom(const QString &room_id);
         void createRoom(const mtx::requests::CreateRoom &req);
@@ -154,6 +159,7 @@ signals:
                            const QImage &icon);
 
         void updateGroupsInfo(const mtx::responses::JoinedGroups &groups);
+        void retrievedPresence(const QString &statusMsg, mtx::presence::PresenceState state);
         void themeChanged();
         void decryptSidebarChanged();