mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Added logging
This commit is contained in:
@@ -2595,8 +2595,10 @@ class Core {
|
||||
}
|
||||
|
||||
// Delete not synchronized messages without uid
|
||||
if (!EntityFolder.isOutgoing(folder.type))
|
||||
db.message().deleteOrphans(folder.id);
|
||||
if (!EntityFolder.isOutgoing(folder.type)) {
|
||||
int orphans = db.message().deleteOrphans(folder.id);
|
||||
Log.i(folder.name + " deleted orphans=" + orphans);
|
||||
}
|
||||
|
||||
int count = MessageHelper.getMessageCount(ifolder);
|
||||
db.folder().setFolderTotal(folder.id, count < 0 ? null : count);
|
||||
|
||||
Reference in New Issue
Block a user