diff options
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r-- | lib/connection.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 3d635a7e..df9fb112 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -422,9 +422,10 @@ PostReceiptJob* Connection::postReceipt(Room* room, RoomEvent* event) const return callApi<PostReceiptJob>(room->id(), "m.read", event->id()); } -JoinRoomJob* Connection::joinRoom(const QString& roomAlias) +JoinRoomJob* Connection::joinRoom(const QString& roomAlias, + const QStringList& serverNames) { - auto job = callApi<JoinRoomJob>(roomAlias); + auto job = callApi<JoinRoomJob>(roomAlias, serverNames); connect(job, &JoinRoomJob::success, this, [this, job] { provideRoom(job->roomId(), JoinState::Join); }); return job; |