зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
ea017a1019
Коммит
196eb7b00d
|
@ -4254,7 +4254,15 @@ nsresult nsMsgDBView::AddHdr(nsIMsgDBHdr *msgHdr)
|
||||||
msgHdr->GetMessageKey(&msgKey);
|
msgHdr->GetMessageKey(&msgKey);
|
||||||
msgHdr->GetThreadId(&threadId);
|
msgHdr->GetThreadId(&threadId);
|
||||||
msgHdr->GetThreadParent(&threadParent);
|
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?
|
// ### this isn't quite right, is it? Should be checking that our thread parent key is none?
|
||||||
if (threadParent == nsMsgKey_None)
|
if (threadParent == nsMsgKey_None)
|
||||||
flags |= MSG_VIEW_FLAG_ISTHREAD;
|
flags |= MSG_VIEW_FLAG_ISTHREAD;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче