aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp5
-rw-r--r--lib/connection.h3
2 files changed, 5 insertions, 3 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;
diff --git a/lib/connection.h b/lib/connection.h
index cfad8774..b06fb143 100644
--- a/lib/connection.h
+++ b/lib/connection.h
@@ -461,7 +461,8 @@ namespace QMatrixClient
CreateRoomJob* createDirectChat(const QString& userId,
const QString& topic = {}, const QString& name = {});
- virtual JoinRoomJob* joinRoom(const QString& roomAlias);
+ virtual JoinRoomJob* joinRoom(const QString& roomAlias,
+ const QStringList& serverNames = {});
/** Sends /forget to the server and also deletes room locally.
* This method is in Connection, not in Room, since it's a