diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-06-08 01:45:24 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-06-08 01:59:05 +0200 |
commit | 96f4169be97715e6b6b45663492e3791ba21ae09 (patch) | |
tree | 618753677e69ac590aa2cad267dfd7d31c574bfd /src/ChatPage.h | |
parent | Smooth scaling for images (diff) | |
download | nheko-96f4169be97715e6b6b45663492e3791ba21ae09.tar.xz |
Show presence and set custom status messages
Diffstat (limited to 'src/ChatPage.h')
-rw-r--r-- | src/ChatPage.h | 6 |
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(); |