bugfix: threads indicator gets lost with new message cache handling

This commit is contained in:
the-djmaze 2023-02-20 15:15:52 +01:00
parent b8b7f10055
commit 08f391fcd7

View file

@ -493,7 +493,7 @@ class Message implements \JsonSerializable
}
}
return array(
$result = array(
'@Object' => 'Object/Message',
'folder' => $this->sFolder,
'uid' => $this->Uid,
@ -517,7 +517,6 @@ class Message implements \JsonSerializable
'deliveredTo' => $this->oDeliveredTo,
'priority' => $this->iPriority,
'threads' => $this->aThreads,
'unsubsribeLinks' => $this->UnsubsribeLinks,
'readReceipt' => '',
'autocrypt' => $aAutocrypt ?: null,
@ -540,5 +539,11 @@ class Message implements \JsonSerializable
// 'keywords' => $keywords,
'size' => $this->iSize
);
if ($this->aThreads) {
$result['threads'] = $this->aThreads;
}
return $result;
}
}