Added remark

pull/152/head
M66B 6 years ago
parent 630744b4e3
commit 2111688e6e

@ -1088,7 +1088,6 @@ class Core {
// - messages in inbox have same id as message sent to self // - messages in inbox have same id as message sent to self
// - messages in archive have same id as original // - messages in archive have same id as original
if (message == null) { if (message == null) {
// Will fetch headers within database transaction
String msgid = helper.getMessageID(); String msgid = helper.getMessageID();
Log.i(folder.name + " searching for " + msgid); Log.i(folder.name + " searching for " + msgid);
for (EntityMessage dup : db.message().getMessageByMsgId(folder.account, msgid)) { for (EntityMessage dup : db.message().getMessageByMsgId(folder.account, msgid)) {

@ -84,6 +84,7 @@ public class EntityOperation {
static final String ATTACHMENT = "attachment"; static final String ATTACHMENT = "attachment";
static final String SYNC = "sync"; static final String SYNC = "sync";
// These operations should be prepared to be executed twice by both the background and foreground sync
private static List<String> FOREGROUND = Arrays.asList(KEYWORD, HEADERS, RAW, BODY, ATTACHMENT); private static List<String> FOREGROUND = Arrays.asList(KEYWORD, HEADERS, RAW, BODY, ATTACHMENT);
static void queue(Context context, DB db, EntityMessage message, String name, Object... values) { static void queue(Context context, DB db, EntityMessage message, String name, Object... values) {

Loading…
Cancel
Save