mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Added wait operation
This commit is contained in:
@@ -81,6 +81,7 @@ public class EntityOperation {
|
||||
static final String BODY = "body";
|
||||
static final String ATTACHMENT = "attachment";
|
||||
static final String SYNC = "sync";
|
||||
static final String WAIT = "wait";
|
||||
|
||||
static void queue(Context context, DB db, EntityMessage message, String name, Object... values) {
|
||||
JSONArray jargs = new JSONArray();
|
||||
@@ -149,6 +150,8 @@ public class EntityOperation {
|
||||
message.ui_seen = true;
|
||||
}
|
||||
newid = db.message().insertMessage(message);
|
||||
message.id = newid;
|
||||
queue(context, db, message, WAIT);
|
||||
message.id = id;
|
||||
message.account = source.account;
|
||||
message.folder = source.id;
|
||||
|
||||
Reference in New Issue
Block a user