mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
68879. r-racham. sr=bienvenu
This commit is contained in:
parent
9a77d2f126
commit
053c1be610
@ -453,17 +453,23 @@ nsresult nsMsgDBFolder::SendFlagNotifications(nsISupports *item, PRUint32 oldFla
|
|||||||
nsresult rv = NS_OK;
|
nsresult rv = NS_OK;
|
||||||
|
|
||||||
PRUint32 changedFlags = oldFlags ^ newFlags;
|
PRUint32 changedFlags = oldFlags ^ newFlags;
|
||||||
if((changedFlags & MSG_FLAG_READ) || (changedFlags & MSG_FLAG_REPLIED)
|
|
||||||
|| (changedFlags & MSG_FLAG_FORWARDED) || (changedFlags & MSG_FLAG_IMAP_DELETED)
|
if((changedFlags & MSG_FLAG_READ) && (changedFlags & MSG_FLAG_NEW))
|
||||||
|| (changedFlags & MSG_FLAG_NEW) || (changedFlags & MSG_FLAG_OFFLINE))
|
{
|
||||||
|
//..so..if the msg is read in the folder and the folder has new msgs clear the account level and status bar biffs.
|
||||||
|
rv = NotifyPropertyFlagChanged(item, kStatusAtom, oldFlags, newFlags);
|
||||||
|
rv = SetBiffState(newFlags);
|
||||||
|
}
|
||||||
|
else if(changedFlags & (MSG_FLAG_READ | MSG_FLAG_REPLIED | MSG_FLAG_FORWARDED
|
||||||
|
| MSG_FLAG_IMAP_DELETED | MSG_FLAG_NEW | MSG_FLAG_OFFLINE))
|
||||||
{
|
{
|
||||||
rv = NotifyPropertyFlagChanged(item, kStatusAtom, oldFlags, newFlags);
|
rv = NotifyPropertyFlagChanged(item, kStatusAtom, oldFlags, newFlags);
|
||||||
}
|
}
|
||||||
else if((changedFlags & MSG_FLAG_MARKED))
|
else if((changedFlags & MSG_FLAG_MARKED))
|
||||||
{
|
{
|
||||||
rv = NotifyPropertyFlagChanged(item, kFlaggedAtom, oldFlags, newFlags);
|
rv = NotifyPropertyFlagChanged(item, kFlaggedAtom, oldFlags, newFlags);
|
||||||
}
|
}
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP nsMsgDBFolder:: DownloadMessagesForOffline(nsISupportsArray *messages, nsIMsgWindow *)
|
NS_IMETHODIMP nsMsgDBFolder:: DownloadMessagesForOffline(nsISupportsArray *messages, nsIMsgWindow *)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user