A rename to MessagesFlags to prevent confusion with Flags

This commit is contained in:
the-djmaze 2022-06-01 22:06:21 +02:00
parent e8b73b4943
commit c5718057aa
3 changed files with 3 additions and 4 deletions

View file

@ -239,8 +239,8 @@ export class AppUser extends AbstractApp {
MessageFlagsCache.clearFolder(folderFromCache.fullName); MessageFlagsCache.clearFolder(folderFromCache.fullName);
} }
if (result.Flags.length) { if (result.MessagesFlags.length) {
result.Flags.forEach(message => result.MessagesFlags.forEach(message =>
MessageFlagsCache.setFor(folderFromCache.fullName, message.Uid.toString(), message.Flags) MessageFlagsCache.setFor(folderFromCache.fullName, message.Uid.toString(), message.Flags)
); );

View file

@ -31,6 +31,7 @@ class FolderInformation implements \JsonSerializable
/** /**
* @var array * @var array
* Message flags
*/ */
public $Flags = array(); public $Flags = array();

View file

@ -424,8 +424,6 @@ trait Folders
(int) $this->GetActionParam('UidNext', 0), (int) $this->GetActionParam('UidNext', 0),
new \MailSo\Imap\SequenceSet($this->GetActionParam('FlagsUids', [])) new \MailSo\Imap\SequenceSet($this->GetActionParam('FlagsUids', []))
); );
$aInboxInformation['Flags'] = $aInboxInformation['MessagesFlags'];
unset($aInboxInformation['MessagesFlags']);
return $this->DefaultResponse(__FUNCTION__, $aInboxInformation); return $this->DefaultResponse(__FUNCTION__, $aInboxInformation);
} }
catch (\Throwable $oException) catch (\Throwable $oException)