stop using currentIdentity, use the default account instead

r=sspitzer
This commit is contained in:
alecf%netscape.com 2000-02-02 06:56:16 +00:00
Родитель ac281db15a
Коммит 8cc26fea2c
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -153,9 +153,10 @@ function ComposeStartup()
identity = getIdentityForKey(args.preselectid);
else
{
//TODO: what I need here is not the current selected identity but the default one.
// For now GetCurrentIdentity gives back the first identity (not the selected one).
identity = accountManager.currentIdentity;
// no preselect, so use the default account
var identities = accountManager.defaultAccount.identities;
identity = identities.QueryElementAt(0, Components.interfaces.nsIMsgIdentity);
}
identitySelect.value = identity.key;