Skip to content

Commit

Permalink
Fix initial sync flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed May 5, 2015
1 parent 60fd144 commit f8268eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Folder/Base.php
Expand Up @@ -52,7 +52,7 @@ abstract class Horde_ActiveSync_Folder_Base
*
* @var boolean
*/
public $haveInitialSync = true;
public $haveInitialSync = false;

/**
* Timestamp for the last sincedate used for SOFTDELETE.
Expand Down
Expand Up @@ -28,13 +28,6 @@ class Horde_ActiveSync_Folder_Collection extends Horde_ActiveSync_Folder_Base im
{
const VERSION = 1;

/**
* Flag for indicating we have an initial sync for this collection.
*
* @var boolean
*/
public $haveInitialSync = false;

/**
* Updates the internal UID cache, and clears the internal
* update/deleted/changed cache.
Expand Down
2 changes: 2 additions & 0 deletions framework/ActiveSync/lib/Horde/ActiveSync/Folder/Imap.php
Expand Up @@ -294,6 +294,7 @@ public function updateState()
$this->_changed = array();
$this->_flags = array();
$this->_softDeleted = array();
$this->haveInitialSync = true;
}

/**
Expand Down Expand Up @@ -474,6 +475,7 @@ public function unserialize($data)
$this->_class = $d_data['c'];
$this->_lastSinceDate = $d_data['lsd'];
$this->_softDelete = $d_data['sd'];
$this->haveInitialSync = !empty($this->_messages);

if (!empty($this->_status[self::HIGHESTMODSEQ]) && is_string($this->_messages)) {
$this->_messages = $this->_fromSequenceString($this->_messages);
Expand Down

0 comments on commit f8268eb

Please sign in to comment.