Skip to content

Commit

Permalink
Merge branch 'thomasjfox-kolab-storage-fix-token-sync'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Sep 17, 2015
2 parents ffd0267 + 2eecfe0 commit a984bc8
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -426,7 +426,10 @@ public function sync($folder, $token, array $ids = array())
*/
public function getStampFromToken($folder, $token, array $ids)
{
// always get folder status first, then sync()
$status = $this->status($folder);
$sync = $this->sync($folder, $token, $ids);

$ids = array_diff(
$ids,
$sync[Horde_Kolab_Storage_Folder_Stamp_Uids::DELETED]
Expand All @@ -436,7 +439,7 @@ public function getStampFromToken($folder, $token, array $ids)
$sync[Horde_Kolab_Storage_Folder_Stamp_Uids::ADDED]
);
return new Horde_Kolab_Storage_Folder_Stamp_Uids(
$this->status($folder),
$status,
$ids
);
}
Expand Down

0 comments on commit a984bc8

Please sign in to comment.