зеркало из https://github.com/mozilla/gecko-dev.git
for now, use GetCurrentIdentity hack when SendMessagesLater gets fired
This commit is contained in:
Родитель
029253f05c
Коммит
1325d1187f
|
@ -1003,7 +1003,16 @@ nsMessenger::SendUnsentMessages()
|
|||
|
||||
NS_ADDREF(sendLaterListener);
|
||||
pMsgSendLater->AddListener(sendLaterListener);
|
||||
pMsgSendLater->SendUnsentMessages(nsnull, nsnull, nsnull);
|
||||
|
||||
// temporary hack to get the current identity
|
||||
NS_WITH_SERVICE(nsIMsgMailSession, mailSession, kCMsgMailSessionCID, &rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsCOMPtr<nsIMsgIdentity> identity;
|
||||
rv = mailSession->GetCurrentIdentity(getter_AddRefs(identity));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
pMsgSendLater->SendUnsentMessages(identity, nsnull, nsnull);
|
||||
NS_RELEASE(sendLaterListener);
|
||||
}
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче