diff --git a/Quotient/connection.cpp b/Quotient/connection.cpp index 36a39b452..f205fadb8 100644 --- a/Quotient/connection.cpp +++ b/Quotient/connection.cpp @@ -660,16 +660,14 @@ JobHandle Connection::joinRoom(const QString& roomAlias, const QStr // Upon completion, ensure a room object is created in case it hasn't come with a sync yet. // If the room object is not there, provideRoom() will create it in Join state. Using // the continuation ensures that the room is provided before any client connections. - return callApi(roomAlias, serverNames).then([this](const QString& roomId) { - provideRoom(roomId); - }); + return callApi(roomAlias, serverNames, serverNames) + .then([this](const QString& roomId) { provideRoom(roomId); }); } QFuture Connection::joinAndGetRoom(const QString& roomAlias, const QStringList& serverNames) { - return callApi(roomAlias, serverNames).then([this](const QString& roomId) { - return provideRoom(roomId); - }); + return callApi(roomAlias, serverNames, serverNames) + .then([this](const QString& roomId) { return provideRoom(roomId); }); } LeaveRoomJob* Connection::leaveRoom(Room* room)