1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 09:08:49 -05:00

Replace synchronous setting of a flag with async setting of the flag. This helps speed up message display time (anecdotally)

This commit is contained in:
Jesse Vincent 2013-07-11 16:08:22 -04:00
parent 463b33855b
commit 1bed455e4f

View File

@ -3168,8 +3168,7 @@ public class MessagingController implements Runnable {
if (account.isMarkMessageAsReadOnView() && !message.isSet(Flag.SEEN)) {
List<Long> messageIds = Collections.singletonList(message.getId());
setFlagInCache(account, messageIds, Flag.SEEN, true);
setFlagSynchronous(account, messageIds, Flag.SEEN, true, false);
setFlag(account, messageIds, Flag.SEEN, true);
((LocalMessage) message).setFlagInternal(Flag.SEEN, true);
}