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

This commit is contained in:
bienvenu%nventure.com 2004-04-19 18:25:08 +00:00
Родитель ea017a1019
Коммит 196eb7b00d
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -4254,7 +4254,15 @@ nsresult nsMsgDBView::AddHdr(nsIMsgDBHdr *msgHdr)
msgHdr->GetMessageKey(&msgKey);
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;