aboutsummaryrefslogtreecommitdiff
path: root/jobs/joinroomjob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/joinroomjob.cpp')
-rw-r--r--jobs/joinroomjob.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/jobs/joinroomjob.cpp b/jobs/joinroomjob.cpp
index 8848aa70..d443acd7 100644
--- a/jobs/joinroomjob.cpp
+++ b/jobs/joinroomjob.cpp
@@ -29,14 +29,13 @@ class JoinRoomJob::Private
{
public:
QString roomId;
- QString roomAlias;
};
JoinRoomJob::JoinRoomJob(ConnectionData* data, QString roomAlias)
- : BaseJob(data, JobHttpType::PostJob, "JoinRoomJob")
+ : BaseJob(data, JobHttpType::PostJob, "JoinRoomJob",
+ QString("_matrix/client/r0/join/%1").arg(roomAlias))
, d(new Private)
{
- d->roomAlias = roomAlias;
}
JoinRoomJob::~JoinRoomJob()
@@ -49,11 +48,6 @@ QString JoinRoomJob::roomId()
return d->roomId;
}
-QString JoinRoomJob::apiPath() const
-{
- return QString("_matrix/client/r0/join/%1").arg(d->roomAlias);
-}
-
BaseJob::Status JoinRoomJob::parseJson(const QJsonDocument& data)
{
QJsonObject json = data.object();