From 3d446f3ff6effb87da2e2a9df0e2c7ba9073e154 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 30 Aug 2018 09:00:21 +0900 Subject: SyncJob: Add account_data to left rooms Closes #240. --- lib/jobs/syncjob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(room_, "ephemeral"_ls); - accountData = load(room_, "account_data"_ls); FALLTHROUGH; case JoinState::Leave: { + accountData = load(room_, "account_data"_ls); timeline = load(room_, "timeline"_ls); const auto timelineJson = room_.value("timeline"_ls).toObject(); timelineLimited = timelineJson.value("limited"_ls).toBool(); -- cgit v1.2.3