File tree Expand file tree Collapse file tree 8 files changed +25
-12
lines changed Expand file tree Collapse file tree 8 files changed +25
-12
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " criptext" ,
3- "version" : " 0.19.0 " ,
3+ "version" : " 0.19.1 " ,
44 "author" : {
55 "name" : " Criptext Inc" ,
66132132 "electron-builder" : " ^20.18.0"
133133 },
134134 "dependencies" : {
135- "@criptext/api" : " ^0.15.14 " ,
135+ "@criptext/api" : " ^0.15.15 " ,
136136 "@criptext/data-transfer-client" : " ^0.1.1" ,
137137 "@criptext/electron-better-ipc" : " ^0.1.2-rc5" ,
138138 "@criptext/electron-push-receiver" : " ^2.1.2" ,
Original file line number Diff line number Diff line change 9696 lodash "^4.2.0"
9797 to-fast-properties "^2.0.0"
9898
99- " @criptext/api@^0.15.14 " :
100- version "0.15.14 "
101- resolved "https://registry.yarnpkg.com/@criptext/api/-/api-0.15.14 .tgz#d446e531def9339c363c141c449869ec17ed0904 "
102- integrity sha512-HLTdnrIreuWGTYHAwzksFLz6g66EbhIX4MBLTztqGVmN1tS929DyRbwdUqrk5FfqXOccKrgU35LnXjzStdKbcw ==
99+ " @criptext/api@^0.15.15 " :
100+ version "0.15.15 "
101+ resolved "https://registry.yarnpkg.com/@criptext/api/-/api-0.15.15 .tgz#e012531fea8a51b7cfa6ac237b782b16319b8387 "
102+ integrity sha512-GKE09LQDBjYWvA8SR3BLu56wVJt3211I++I6ziqeAxxYyV7Na9RX5dZCOXKA1KAbiYTs5PmPpftZSc3/77nIDg ==
103103 dependencies :
104104 superagent "^3.8.2"
105105
Original file line number Diff line number Diff line change @@ -541,7 +541,11 @@ class ComposerWrapper extends Component {
541541 toEmails : this . state . toEmails ,
542542 threadId : this . state . threadId || temporalThreadId
543543 } ;
544- const { emailData, recipientDomains } = formOutgoingEmailFromData ( data ) ;
544+ const {
545+ bodyWithSign,
546+ emailData,
547+ recipientDomains
548+ } = formOutgoingEmailFromData ( data ) ;
545549 let emailId , key ;
546550 try {
547551 const files = await getFileParamsToSend ( this . state . files ) ;
@@ -569,6 +573,7 @@ class ComposerWrapper extends Component {
569573 : emailData . email . threadId ,
570574 recipients,
571575 body : emailData . body ,
576+ bodyWithSign,
572577 preview : emailData . email . preview ,
573578 files,
574579 peer,
@@ -775,7 +780,6 @@ class ComposerWrapper extends Component {
775780 bccEmails : this . state . bccEmails ,
776781 body : this . state . newHtmlBody ,
777782 ccEmails : this . state . ccEmails ,
778- isDraft : true ,
779783 labelId : LabelType . draft . id ,
780784 secure : false ,
781785 textSubject : this . state . textSubject ,
Original file line number Diff line number Diff line change @@ -179,6 +179,7 @@ const createEmails = async (
179179const encryptPostEmail = async ( {
180180 recipients,
181181 body,
182+ bodyWithSign,
182183 preview,
183184 subject,
184185 threadId,
@@ -245,7 +246,7 @@ const encryptPostEmail = async ({
245246 recipients,
246247 guestDomains,
247248 files,
248- body
249+ body : bodyWithSign
249250 } ) ;
250251 const data = noNulls ( {
251252 subject,
Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ export const formOutgoingEmailFromData = ({
9191 bccEmails,
9292 body,
9393 ccEmails,
94- isDraft,
9594 isEnterprise,
9695 labelId,
9796 secure,
@@ -142,11 +141,15 @@ export const formOutgoingEmailFromData = ({
142141 email,
143142 recipients,
144143 labels,
145- body : secure || isDraft || isEnterprise ? body : ` ${ body } ${ formAppSign ( ) } ` ,
144+ body,
146145 files
147146 } ;
148147
148+ const bodyWithSign =
149+ secure || isEnterprise ? body : `${ body } ${ formAppSign ( ) } ` ;
150+
149151 return {
152+ bodyWithSign,
150153 emailData,
151154 recipientDomains
152155 } ;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ Object {
2020
2121exports [` Form outgoing email: Should form outgoing email from data 1` ] = `
2222Object {
23+ " bodyWithSign" : " <p>Hello</p>" ,
2324 " emailData" : Object {
2425 " body" : " <p>Hello</p>" ,
2526 " email" : Object {
Original file line number Diff line number Diff line change 11{
22 "name" : " email_mailbox" ,
3- "version" : " 0.19.0 " ,
3+ "version" : " 0.19.1 " ,
44 "private" : true ,
55 "dependencies" : {
66 "@criptext/electron-better-ipc" : " ^0.1.2-rc5" ,
Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ class Thread extends Component {
8282 return this . props . onBackOption ( ) ;
8383 }
8484
85+ if ( prevProps . thread . id !== this . props . thread . id ) {
86+ this . props . onLoadEmails ( this . props . thread . emailIds ) ;
87+ }
88+
8589 if (
8690 this . props . thread . unread &&
8791 prevProps . emailKeysUnread . length !== this . props . emailKeysUnread . length
You can’t perform that action at this time.
0 commit comments