mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03:00
A rename to MessagesFlags to prevent confusion with Flags
This commit is contained in:
parent
e8b73b4943
commit
c5718057aa
3 changed files with 3 additions and 4 deletions
|
|
@ -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)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ class FolderInformation implements \JsonSerializable
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
|
* Message flags
|
||||||
*/
|
*/
|
||||||
public $Flags = array();
|
public $Flags = array();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue