Fix cache cleanup

This commit is contained in:
cketti 2013-03-18 17:44:10 +01:00
parent 538b81b6ec
commit a364d6262d
1 changed files with 2 additions and 2 deletions

View File

@ -2803,10 +2803,10 @@ public class MessagingController implements Runnable {
try {
if (threadedList) {
localStore.setFlagForThreads(ids, flag, newState);
removeFlagFromCache(account, ids, flag);
removeFlagForThreadsFromCache(account, ids, flag);
} else {
localStore.setFlag(ids, flag, newState);
removeFlagForThreadsFromCache(account, ids, flag);
removeFlagFromCache(account, ids, flag);
}
} catch (MessagingException e) {
Log.e(K9.LOG_TAG, "Couldn't set flags in local database", e);