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
This commit is contained in:
scott%scott-macgregor.org
2004-05-18 05:23:59 +00:00
parent 3f0653983a
commit 119a230b89

View File

@@ -4199,6 +4199,14 @@ nsresult nsMsgDBView::AddHdr(nsIMsgDBHdr *msgHdr)
msgHdr->GetThreadId(&threadId);
msgHdr->GetThreadParent(&threadParent);
nsCOMPtr <nsIMsgThread> 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;