From 119a230b898c7ce26c4fba1d885f6a43858b5f41 Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Tue, 18 May 2004 05:23:59 +0000 Subject: [PATCH] Port: Fix news filters that mark threads as watched or ignored, so that the thread shows up as watched/ignored immediately instead of the next time you open the newsgroup, sr=mscott 227224 git-svn-id: svn://10.0.0.236/branches/AVIARY_1_0_20040515_BRANCH@156512 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/base/src/nsMsgDBView.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mozilla/mailnews/base/src/nsMsgDBView.cpp b/mozilla/mailnews/base/src/nsMsgDBView.cpp index f8c97428540..6f35f3bcbbd 100644 --- a/mozilla/mailnews/base/src/nsMsgDBView.cpp +++ b/mozilla/mailnews/base/src/nsMsgDBView.cpp @@ -4199,6 +4199,14 @@ nsresult nsMsgDBView::AddHdr(nsIMsgDBHdr *msgHdr) msgHdr->GetThreadId(&threadId); msgHdr->GetThreadParent(&threadParent); + nsCOMPtr thread; + m_db->GetThreadContainingMsgHdr(msgHdr, getter_AddRefs(thread)); + if (thread) + { + PRUint32 threadFlags; + thread->GetFlags(&threadFlags); + flags |= threadFlags; + } // ### this isn't quite right, is it? Should be checking that our thread parent key is none? if (threadParent == nsMsgKey_None) flags |= MSG_VIEW_FLAG_ISTHREAD;