diff options
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/connection.cpp b/connection.cpp index 4fb661f3..06c4dcee 100644 --- a/connection.cpp +++ b/connection.cpp @@ -286,7 +286,10 @@ PostReceiptJob* Connection::postReceipt(Room* room, RoomEvent* event) const JoinRoomJob* Connection::joinRoom(const QString& roomAlias) { - return callApi<JoinRoomJob>(roomAlias); + auto job = callApi<JoinRoomJob>(roomAlias); + connect(job, &JoinRoomJob::success, + this, [=] { provideRoom(job->roomId(), JoinState::Join); }); + return job; } void Connection::leaveRoom(Room* room) |