Skip to content

Commit

Permalink
protonmail: fix "mesage.unread" value storing, fixes #53
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimiry committed Oct 19, 2018
1 parent abd1a6e commit 7e852f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function buildMail(input: Rest.Model.Message, api: Api): Promise<Da
ccRecipients: input.CCList.map((address, i) => Address({...address, ...buildAddressId(input, "CCList", i)})),
bccRecipients: input.BCCList.map((address, i) => Address({...address, ...buildAddressId(input, "BCCList", i)})),
attachments: input.Attachments.map(File),
unread: !Boolean(input.IsRead),
unread: Boolean(input.Unread),
state: directTypeMapping[input.Type],
confidential: isConfindencial(input),
replyType: (input.IsReplied || input.IsRepliedAll) && input.IsForwarded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export interface Message<TypeRecord = typeof MAIL_TYPE._.nameValueMap,
Header: string;
IsEncrypted: IsEncryptedRecord[keyof IsEncryptedRecord];
IsForwarded: NumberBoolean;
IsRead: NumberBoolean;
IsReplied: NumberBoolean;
IsRepliedAll: NumberBoolean;
LabelIDs: string[];
Expand Down

0 comments on commit 7e852f6

Please sign in to comment.