since we're checking seen status within the notify method, (first thing,

even), we don't need to do it in the caller code.
This commit is contained in:
Jesse Vincent 2010-07-15 03:42:09 +00:00
parent ff62ae5c23
commit 1bea931ed0
1 changed files with 7 additions and 11 deletions

View File

@ -1722,13 +1722,11 @@ public class MessagingController implements Runnable
l.synchronizeMailboxNewMessage(account, folder, localMessage);
}
}
if (!localMessage.isSet(Flag.SEEN))
// Send a notification of this message
if (notifyAccount(mApplication, account, message) == true)
{
// Send a notification of this message
if (notifyAccount(mApplication, account, message) == true)
{
newMessages.incrementAndGet();
}
newMessages.incrementAndGet();
}
}
@ -1868,13 +1866,11 @@ public class MessagingController implements Runnable
l.synchronizeMailboxNewMessage(account, folder, localMessage);
}
}
if (!localMessage.isSet(Flag.SEEN))
// Send a notification of this message
if (notifyAccount(mApplication, account, message) == true)
{
// Send a notification of this message
if (notifyAccount(mApplication, account, message) == true)
{
newMessages.incrementAndGet();
}
}