From 9d34e102d3ab2ce568f414dc767ea2b03bbf6d7b Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 2 Jun 2016 13:33:17 +0200 Subject: Load the right revision for changereplay, not just the latest one --- common/sourcewriteback.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/sourcewriteback.cpp') diff --git a/common/sourcewriteback.cpp b/common/sourcewriteback.cpp index 1c07577..87f6934 100644 --- a/common/sourcewriteback.cpp +++ b/common/sourcewriteback.cpp @@ -79,14 +79,14 @@ KAsync::Job SourceWriteBack::replay(const QByteArray &type, const QByteArr if (operation != Sink::Operation_Creation) { oldRemoteId = syncStore().resolveLocalId(type, uid); } - Trace() << "Replaying " << key << type; + Trace() << "Replaying " << key << type << oldRemoteId; KAsync::Job job = KAsync::null(); if (type == ENTITY_TYPE_FOLDER) { - auto folder = store().read(uid); + auto folder = store().readFromKey(key); job = replay(folder, operation, oldRemoteId); } else if (type == ENTITY_TYPE_MAIL) { - auto mail = store().read(uid); + auto mail = store().readFromKey(key); job = replay(mail, operation, oldRemoteId); } -- cgit v1.2.3