mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
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:
parent
1804c318d0
commit
1d99309fe2
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user