aboutsummaryrefslogtreecommitdiff
path: root/jobs/syncjob.h
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/syncjob.h')
-rw-r--r--jobs/syncjob.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/jobs/syncjob.h b/jobs/syncjob.h
index b1db914d..08bd773e 100644
--- a/jobs/syncjob.h
+++ b/jobs/syncjob.h
@@ -36,11 +36,10 @@ namespace QMatrixClient
explicit Batch(QString k) : jsonKey(std::move(k)) { }
void fromJson(const QJsonObject& roomContents)
{
- this->assign(makeEvents<EventT>(
- roomContents[jsonKey].toObject()["events"].toArray()));
+ EventsBatch<EventT>::fromJson(
+ roomContents[jsonKey].toObject(), "events");
}
-
private:
QString jsonKey;
};