aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-08-30 09:00:21 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-08-30 09:00:21 +0900
commit3d446f3ff6effb87da2e2a9df0e2c7ba9073e154 (patch)
treecc8d0c46d83892c546b365bc7d26442953f47ee4 /lib/jobs
parentd9ff200ff62fb7f5b6b51082dc3979d5454a1bec (diff)
downloadlibquotient-3d446f3ff6effb87da2e2a9df0e2c7ba9073e154.tar.gz
libquotient-3d446f3ff6effb87da2e2a9df0e2c7ba9073e154.zip
SyncJob: Add account_data to left rooms
Closes #240.
Diffstat (limited to 'lib/jobs')
-rw-r--r--lib/jobs/syncjob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jobs/syncjob.cpp b/lib/jobs/syncjob.cpp
index 02690e6d..9cbac71b 100644
--- a/lib/jobs/syncjob.cpp
+++ b/lib/jobs/syncjob.cpp
@@ -130,10 +130,10 @@ SyncRoomData::SyncRoomData(const QString& roomId_, JoinState joinState_,
switch (joinState) {
case JoinState::Join:
ephemeral = load<Events>(room_, "ephemeral"_ls);
- accountData = load<Events>(room_, "account_data"_ls);
FALLTHROUGH;
case JoinState::Leave:
{
+ accountData = load<Events>(room_, "account_data"_ls);
timeline = load<RoomEvents>(room_, "timeline"_ls);
const auto timelineJson = room_.value("timeline"_ls).toObject();
timelineLimited = timelineJson.value("limited"_ls).toBool();