Skip to content

Commit

Permalink
draft - commit needs fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
matidau committed Jul 15, 2024
1 parent 6068f3f commit c14550a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/imap/imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -1111,10 +1111,10 @@ public function GetMessageList($folderid, $cutoffdate) {
else {
$message["star"] = 0;
}

$isdraftfolder = ($this->GetFolder($this->getFolderIdFromImapId($folderid))->type === SYNC_FOLDER_TYPE_DRAFTS);


// 'draft'
$isdraftfolder = ($this->GetFolder($this->getFolderIdFromImapId($folderid))->type === SYNC_FOLDER_TYPE_DRAFTS);

if ((isset($overview->draft) && $overview->draft) || $isdraftfolder) {
$message["draft"] = 1;
ZLog::Write(LOGLEVEL_WARN, sprintf("GetMessageList() isdraftfolder=%s", $isdraftfolder ));
Expand Down
5 changes: 5 additions & 0 deletions src/lib/default/diffbackend/diffstate.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ protected function getDiffTo($new) {
$change["type"] = "change";
$changes[] = $change;
}
elseif(isset($old_item["draft"], $item["draft"]) && $old_item["draft"] != $item["draft"]) {
// 'draft' changed
$change["type"] = "change";
$changes[] = $change;
}
elseif(isset($old_item['mod'], $item['mod']) && $old_item['mod'] != $item['mod']) {
// message modified
$change["type"] = "change";
Expand Down

0 comments on commit c14550a

Please sign in to comment.