Skip to content

Commit

Permalink
fix sync: lastsync ts used from syncstate
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmhh committed Oct 8, 2024
1 parent 84d18b8 commit 6144042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Syncroton/Command/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function handle()
continue;
}

$dataController = Syncroton_Data_Factory::factory($collectionData->folder->class, $this->_device, $this->_syncTimeStamp);
$dataController = Syncroton_Data_Factory::factory($collectionData->folder->class, $this->_device, $collectionData->syncState->lastsync);

switch($collectionData->folder->class) {
case Syncroton_Data_Factory::CLASS_CALENDAR:
Expand Down Expand Up @@ -528,7 +528,7 @@ public function getResponse()
continue;
}

$dataController = Syncroton_Data_Factory::factory($collectionData->folder->class , $this->_device, $this->_syncTimeStamp);
$dataController = Syncroton_Data_Factory::factory($collectionData->folder->class , $this->_device, $collectionData->syncState->lastsync);

// countinue immediately if there are any changes available
if($dataController->hasChanges($this->_contentStateBackend, $collectionData->folder, $collectionData->syncState)) {
Expand Down

0 comments on commit 6144042

Please sign in to comment.