diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-08-30 09:00:21 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-08-30 09:00:21 +0900 |
commit | 3d446f3ff6effb87da2e2a9df0e2c7ba9073e154 (patch) | |
tree | cc8d0c46d83892c546b365bc7d26442953f47ee4 /lib/jobs/syncjob.cpp | |
parent | d9ff200ff62fb7f5b6b51082dc3979d5454a1bec (diff) | |
download | libquotient-3d446f3ff6effb87da2e2a9df0e2c7ba9073e154.tar.gz libquotient-3d446f3ff6effb87da2e2a9df0e2c7ba9073e154.zip |
SyncJob: Add account_data to left rooms
Closes #240.
Diffstat (limited to 'lib/jobs/syncjob.cpp')
-rw-r--r-- | lib/jobs/syncjob.cpp | 2 |
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(); |