зеркало из https://github.com/mozilla/gecko-dev.git
DisplayMessage now takes the URI instead of the path, msg key pair. So I'm cleaning up the code that used to decompose the URI...
This commit is contained in:
Родитель
7d526b8ad9
Коммит
05a6e05ec2
|
@ -523,20 +523,16 @@ nsMsgAppCore::OpenURL(const char * url)
|
|||
}
|
||||
else
|
||||
{
|
||||
nsString folderURI;
|
||||
nsParseLocalMessageURI(url, folderURI, &msgIndex);
|
||||
nsURI2Path(kMessageRootURI, nsAutoCString(folderURI), folderPath);
|
||||
displayNumber = PR_FALSE;
|
||||
}
|
||||
nsIMailboxService * mailboxService = nsnull;
|
||||
nsresult rv = nsServiceManager::GetService(kCMailboxServiceCID, nsIMailboxService::GetIID(), (nsISupports **) &mailboxService);
|
||||
if (NS_SUCCEEDED(rv) && mailboxService)
|
||||
{
|
||||
nsIURL * url = nsnull;
|
||||
if(displayNumber)
|
||||
mailboxService->DisplayMessageNumber(folderPath, msgIndex, mWebShell, nsnull, nsnull);
|
||||
else
|
||||
mailboxService->DisplayMessage(folderPath, msgIndex, nsnull, mWebShell, nsnull, nsnull);
|
||||
mailboxService->DisplayMessage(url, mWebShell, nsnull, nsnull);
|
||||
|
||||
nsServiceManager::ReleaseService(kCMailboxServiceCID, mailboxService);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче