This commit is contained in:
the-djmaze 2024-02-12 01:26:56 +01:00
parent 7da5692865
commit 355f6158be
3 changed files with 16 additions and 6 deletions

View file

@ -1035,9 +1035,9 @@ trait Messages
$oMessage->SetReferences($this->GetActionParam('references', ''));
$aAutocrypt = $this->GetActionParam('autocrypt', []);
foreach ($aAutocrypt as $header) {
$oMessage->SetCustomHeader('Autocrypt', "addr={$header['addr']}; keydata={$header['keydata']}");
}
$oMessage->SetAutocrypt(
\array_map(fn($header)=>"addr={$header['addr']}; keydata={$header['keydata']}", $aAutocrypt)
);
$aFoundCids = array();
$aFoundDataURL = array();