Fix Forward Multiple Messages (fixed #64)

This commit is contained in:
RainLoop Team 2014-02-05 21:16:34 +04:00
parent 7a411cea86
commit d50c068a3d
4 changed files with 42 additions and 28 deletions

View file

@ -425,21 +425,28 @@ PopupsComposeViewModel.prototype.findIdentityIdByMessage = function (sComposeTyp
oIDs[RL.data().accountEmail()] = RL.data().accountEmail();
if (oMessage)
{
switch (sComposeType)
{
case Enums.ComposeType.Empty:
case Enums.ComposeType.ForwardAsAttachment:
sResult = RL.data().accountEmail();
break;
case Enums.ComposeType.Reply:
case Enums.ComposeType.ReplyAll:
case Enums.ComposeType.Forward:
case Enums.ComposeType.ForwardAsAttachment:
_.find(_.union(oMessage.to, oMessage.cc, oMessage.bcc), fFindHelper);
break;
case Enums.ComposeType.Draft:
_.find(_.union(oMessage.from, oMessage.replyTo), fFindHelper);
break;
}
}
else
{
sResult = RL.data().accountEmail();
}
return sResult;
};

View file

@ -2,7 +2,7 @@
"name": "RainLoop",
"title": "RainLoop Webmail",
"version": "1.6.2",
"release": "671",
"release": "672",
"description": "Simple, modern & fast web-based email client",
"homepage": "http://rainloop.net",
"main": "Gruntfile.js",

View file

@ -8492,21 +8492,28 @@ PopupsComposeViewModel.prototype.findIdentityIdByMessage = function (sComposeTyp
oIDs[RL.data().accountEmail()] = RL.data().accountEmail();
if (oMessage)
{
switch (sComposeType)
{
case Enums.ComposeType.Empty:
case Enums.ComposeType.ForwardAsAttachment:
sResult = RL.data().accountEmail();
break;
case Enums.ComposeType.Reply:
case Enums.ComposeType.ReplyAll:
case Enums.ComposeType.Forward:
case Enums.ComposeType.ForwardAsAttachment:
_.find(_.union(oMessage.to, oMessage.cc, oMessage.bcc), fFindHelper);
break;
case Enums.ComposeType.Draft:
_.find(_.union(oMessage.from, oMessage.replyTo), fFindHelper);
break;
}
}
else
{
sResult = RL.data().accountEmail();
}
return sResult;
};

File diff suppressed because one or more lines are too long