1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-22 22:21:18 +00:00

Update folder stats after move

This commit is contained in:
M66B 2020-08-07 20:58:42 +02:00
parent 793319e5f2
commit dc5a15a8bd

View file

@ -1014,6 +1014,9 @@ class Core {
} catch (MessageRemovedException ignored) {
}
ifolder.expunge();
} else {
int count = ifolder.getMessageCount();
db.folder().setFolderTotal(folder.id, count < 0 ? null : count);
}
// Fetch appended/copied when needed