зеркало из https://github.com/mozilla/pjs.git
fix the bug where we aren't preflighting compose with the correct identity,
or in the case of news, the correct addressee. this was hidden by a try / catch, where the dump statement was hidden.
This commit is contained in:
Родитель
44e0b5cf2e
Коммит
7d1322858e
|
@ -110,13 +110,14 @@ function getIdentityForServer(server)
|
|||
var newsgroup = null;
|
||||
var server;
|
||||
|
||||
dump("ComposeMessage folder="+folder+"\n");
|
||||
try
|
||||
{
|
||||
server = folder.server;
|
||||
if(folder)
|
||||
{
|
||||
// get the incoming server associated with this uri
|
||||
var server = loadedFolder.server;
|
||||
var server = folder.server;
|
||||
|
||||
// if they hit new or reply and they are reading a newsgroup
|
||||
// turn this into a new post or a reply to group.
|
||||
|
@ -129,7 +130,7 @@ function getIdentityForServer(server)
|
|||
{
|
||||
type = msgComposeType.NewsPost;
|
||||
|
||||
if (loadedFolder.isServer)
|
||||
if (folder.isServer)
|
||||
newsgroup = "";
|
||||
else
|
||||
newsgroup = folder.name;
|
||||
|
@ -143,7 +144,7 @@ function getIdentityForServer(server)
|
|||
}
|
||||
catch (ex)
|
||||
{
|
||||
// dump("failed to get an identity to pre-select: " + ex + "\n");
|
||||
dump("failed to get an identity to pre-select: " + ex + "\n");
|
||||
}
|
||||
|
||||
dump("\nComposeMessage from XUL: " + identity + "\n");
|
||||
|
|
Загрузка…
Ссылка в новой задаче