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.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ChatPage.h b/src/ChatPage.h

index f2249637..2673a3de 100644 --- a/src/ChatPage.h +++ b/src/ChatPage.h
@@ -84,7 +84,11 @@ public slots: void leaveRoom(const QString &room_id, const QString &reason); void createRoom(const mtx::requests::CreateRoom &req); void joinRoom(const QString &room, const QString &reason = ""); - void knockRoom(const QString &room, const QString &reason = ""); + void knockRoom(const QString &room, QString reason = "") { knockRoom(room, {}, reason, false); } + void knockRoom(const QString &room, + const std::vector<std::string> &via, + QString reason = "", + bool failedJoin = false); void joinRoomVia(const std::string &room_id, const std::vector<std::string> &via, bool promptForConfirmation = true, @@ -161,6 +165,11 @@ signals: void downloadedSecrets(mtx::secret_storage::AesHmacSha2KeyDescription keyDesc, const SecretsToDecrypt &secrets); + void internalKnock(const QString &room, + const std::vector<std::string> &via, + QString reason = "", + bool failedJoin = false); + private slots: void logout(); void removeRoom(const QString &room_id);