From 5200e69fa2971b4e8d9736d96d5e9f9fc11b05ae Mon Sep 17 00:00:00 2001 From: "bienvenu%netscape.com" Date: Sun, 25 Mar 2001 19:33:18 +0000 Subject: [PATCH] fix loading a newsgroup and loading a news message while offline sr=sspitzer 15865 --- mailnews/news/src/nsNNTPProtocol.cpp | 3 +++ mailnews/news/src/nsNewsFolder.cpp | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/mailnews/news/src/nsNNTPProtocol.cpp b/mailnews/news/src/nsNNTPProtocol.cpp index cc2aa7ad258..407bed5d3a6 100644 --- a/mailnews/news/src/nsNNTPProtocol.cpp +++ b/mailnews/news/src/nsNNTPProtocol.cpp @@ -764,6 +764,9 @@ NS_IMETHODIMP nsNNTPProtocol::AsyncOpen(nsIStreamListener *listener, nsISupports mailnewsUrl->GetMsgIsInLocalCache(&msgIsInLocalCache); if (msgIsInLocalCache) { + nsXPIDLCString group; + nsXPIDLCString commandSpecificData; + rv = ParseURL(m_url, getter_Copies(group), &m_messageID, getter_Copies(commandSpecificData)); nsCOMPtr folder = do_QueryInterface(m_newsFolder); if (folder && NS_SUCCEEDED(rv)) { diff --git a/mailnews/news/src/nsNewsFolder.cpp b/mailnews/news/src/nsNewsFolder.cpp index 18361c90ad0..0da8fc940a5 100644 --- a/mailnews/news/src/nsNewsFolder.cpp +++ b/mailnews/news/src/nsNewsFolder.cpp @@ -419,6 +419,12 @@ nsMsgNewsFolder::UpdateFolder(nsIMsgWindow *aWindow) } rv = GetNewMessages(aWindow); } + if (rv == NS_MSG_ERROR_OFFLINE) + { + rv = NS_OK; + NotifyFolderEvent(mFolderLoadedAtom); + } + return rv; }