mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-06 12:54:11 +01:00
Small improvement
This commit is contained in:
@@ -445,7 +445,10 @@ class Core {
|
||||
}
|
||||
}
|
||||
ifolder.expunge();
|
||||
} else {
|
||||
} else
|
||||
try {
|
||||
db.beginTransaction();
|
||||
|
||||
// Cross account move
|
||||
if (autoread) {
|
||||
Log.i(folder.name + " queuing SEEN id=" + message.id);
|
||||
@@ -454,6 +457,10 @@ class Core {
|
||||
|
||||
Log.i(folder.name + " queuing DELETE id=" + message.id);
|
||||
EntityOperation.queue(context, db, message, EntityOperation.DELETE);
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
} finally {
|
||||
db.endTransaction();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user