mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 00:53:26 +02:00
Show number of pending operations in navigation menu
This commit is contained in:
@@ -56,6 +56,7 @@ public class EntityOperation {
|
||||
|
||||
@PrimaryKey(autoGenerate = true)
|
||||
public Long id;
|
||||
public Long account; // performance
|
||||
@NonNull
|
||||
public Long folder;
|
||||
public Long message;
|
||||
@@ -201,6 +202,7 @@ public class EntityOperation {
|
||||
}
|
||||
|
||||
EntityOperation operation = new EntityOperation();
|
||||
operation.account = message.account;
|
||||
operation.folder = folder;
|
||||
operation.message = message.id;
|
||||
operation.name = name;
|
||||
@@ -228,6 +230,7 @@ public class EntityOperation {
|
||||
|
||||
if (db.operation().getOperationCount(fid, EntityOperation.SYNC) == 0) {
|
||||
EntityOperation operation = new EntityOperation();
|
||||
operation.account = folder.account;
|
||||
operation.folder = folder.id;
|
||||
operation.message = null;
|
||||
operation.name = SYNC;
|
||||
|
||||
Reference in New Issue
Block a user