mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
prepearMessageAttachments => prepareMessageAttachments
This commit is contained in:
parent
65032e3b89
commit
5457427fc1
1 changed files with 7 additions and 8 deletions
|
|
@ -867,7 +867,7 @@ class ComposePopupView extends AbstractViewNext {
|
||||||
case ComposeType.Reply:
|
case ComposeType.Reply:
|
||||||
this.to(this.emailArrayToStringLineHelper(message.replyEmails(excludeEmail)));
|
this.to(this.emailArrayToStringLineHelper(message.replyEmails(excludeEmail)));
|
||||||
this.subject(replySubjectAdd('Re', sSubject));
|
this.subject(replySubjectAdd('Re', sSubject));
|
||||||
this.prepearMessageAttachments(message, lineComposeType);
|
this.prepareMessageAttachments(message, lineComposeType);
|
||||||
this.aDraftInfo = ['reply', message.uid, message.folderFullNameRaw];
|
this.aDraftInfo = ['reply', message.uid, message.folderFullNameRaw];
|
||||||
this.sInReplyTo = message.sMessageId;
|
this.sInReplyTo = message.sMessageId;
|
||||||
this.sReferences = (this.sInReplyTo + ' ' + message.sReferences).trim();
|
this.sReferences = (this.sInReplyTo + ' ' + message.sReferences).trim();
|
||||||
|
|
@ -878,7 +878,7 @@ class ComposePopupView extends AbstractViewNext {
|
||||||
this.to(this.emailArrayToStringLineHelper(resplyAllParts[0]));
|
this.to(this.emailArrayToStringLineHelper(resplyAllParts[0]));
|
||||||
this.cc(this.emailArrayToStringLineHelper(resplyAllParts[1]));
|
this.cc(this.emailArrayToStringLineHelper(resplyAllParts[1]));
|
||||||
this.subject(replySubjectAdd('Re', sSubject));
|
this.subject(replySubjectAdd('Re', sSubject));
|
||||||
this.prepearMessageAttachments(message, lineComposeType);
|
this.prepareMessageAttachments(message, lineComposeType);
|
||||||
this.aDraftInfo = ['reply', message.uid, message.folderFullNameRaw];
|
this.aDraftInfo = ['reply', message.uid, message.folderFullNameRaw];
|
||||||
this.sInReplyTo = message.sMessageId;
|
this.sInReplyTo = message.sMessageId;
|
||||||
this.sReferences = (this.sInReplyTo + ' ' + message.references()).trim();
|
this.sReferences = (this.sInReplyTo + ' ' + message.references()).trim();
|
||||||
|
|
@ -886,7 +886,7 @@ class ComposePopupView extends AbstractViewNext {
|
||||||
|
|
||||||
case ComposeType.Forward:
|
case ComposeType.Forward:
|
||||||
this.subject(replySubjectAdd('Fwd', sSubject));
|
this.subject(replySubjectAdd('Fwd', sSubject));
|
||||||
this.prepearMessageAttachments(message, lineComposeType);
|
this.prepareMessageAttachments(message, lineComposeType);
|
||||||
this.aDraftInfo = ['forward', message.uid, message.folderFullNameRaw];
|
this.aDraftInfo = ['forward', message.uid, message.folderFullNameRaw];
|
||||||
this.sInReplyTo = message.sMessageId;
|
this.sInReplyTo = message.sMessageId;
|
||||||
this.sReferences = (this.sInReplyTo + ' ' + message.sReferences).trim();
|
this.sReferences = (this.sInReplyTo + ' ' + message.sReferences).trim();
|
||||||
|
|
@ -894,7 +894,7 @@ class ComposePopupView extends AbstractViewNext {
|
||||||
|
|
||||||
case ComposeType.ForwardAsAttachment:
|
case ComposeType.ForwardAsAttachment:
|
||||||
this.subject(replySubjectAdd('Fwd', sSubject));
|
this.subject(replySubjectAdd('Fwd', sSubject));
|
||||||
this.prepearMessageAttachments(message, lineComposeType);
|
this.prepareMessageAttachments(message, lineComposeType);
|
||||||
this.aDraftInfo = ['forward', message.uid, message.folderFullNameRaw];
|
this.aDraftInfo = ['forward', message.uid, message.folderFullNameRaw];
|
||||||
this.sInReplyTo = message.sMessageId;
|
this.sInReplyTo = message.sMessageId;
|
||||||
this.sReferences = (this.sInReplyTo + ' ' + message.sReferences).trim();
|
this.sReferences = (this.sInReplyTo + ' ' + message.sReferences).trim();
|
||||||
|
|
@ -912,7 +912,7 @@ class ComposePopupView extends AbstractViewNext {
|
||||||
this.draftUid(message.uid);
|
this.draftUid(message.uid);
|
||||||
|
|
||||||
this.subject(sSubject);
|
this.subject(sSubject);
|
||||||
this.prepearMessageAttachments(message, lineComposeType);
|
this.prepareMessageAttachments(message, lineComposeType);
|
||||||
|
|
||||||
this.aDraftInfo = Array.isNotEmpty(aDraftInfo) && 3 === aDraftInfo.length ? aDraftInfo : null;
|
this.aDraftInfo = Array.isNotEmpty(aDraftInfo) && 3 === aDraftInfo.length ? aDraftInfo : null;
|
||||||
this.sInReplyTo = message.sInReplyTo;
|
this.sInReplyTo = message.sInReplyTo;
|
||||||
|
|
@ -926,7 +926,7 @@ class ComposePopupView extends AbstractViewNext {
|
||||||
this.replyTo(this.emailArrayToStringLineHelper(message.replyTo));
|
this.replyTo(this.emailArrayToStringLineHelper(message.replyTo));
|
||||||
|
|
||||||
this.subject(sSubject);
|
this.subject(sSubject);
|
||||||
this.prepearMessageAttachments(message, lineComposeType);
|
this.prepareMessageAttachments(message, lineComposeType);
|
||||||
|
|
||||||
this.aDraftInfo = Array.isNotEmpty(aDraftInfo) && 3 === aDraftInfo.length ? aDraftInfo : null;
|
this.aDraftInfo = Array.isNotEmpty(aDraftInfo) && 3 === aDraftInfo.length ? aDraftInfo : null;
|
||||||
this.sInReplyTo = message.sInReplyTo;
|
this.sInReplyTo = message.sInReplyTo;
|
||||||
|
|
@ -1369,7 +1369,7 @@ class ComposePopupView extends AbstractViewNext {
|
||||||
* @param {MessageModel} message
|
* @param {MessageModel} message
|
||||||
* @param {string} type
|
* @param {string} type
|
||||||
*/
|
*/
|
||||||
prepearMessageAttachments(message, type) {
|
prepareMessageAttachments(message, type) {
|
||||||
if (message) {
|
if (message) {
|
||||||
if (ComposeType.ForwardAsAttachment === type) {
|
if (ComposeType.ForwardAsAttachment === type) {
|
||||||
this.addMessageAsAttachment(message);
|
this.addMessageAsAttachment(message);
|
||||||
|
|
@ -1379,7 +1379,6 @@ class ComposePopupView extends AbstractViewNext {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case ComposeType.Reply:
|
case ComposeType.Reply:
|
||||||
case ComposeType.ReplyAll:
|
case ComposeType.ReplyAll:
|
||||||
// add = item.isLinked;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ComposeType.Forward:
|
case ComposeType.Forward:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue