Fixed flagging uid

This commit is contained in:
M66B 2019-06-13 21:43:00 +02:00
parent 5002f8c518
commit 3c2878c1bf
1 changed files with 1 additions and 3 deletions

View File

@ -451,7 +451,7 @@ class Core {
// Delete previous message(s) with same ID // Delete previous message(s) with same ID
if (folder.id.equals(message.folder)) { if (folder.id.equals(message.folder)) {
// Prevent adding/deleting message // Prevent adding/deleting message
db.message().setMessageUid(message.id, message.uid == null ? -1L : -message.uid); db.message().setMessageUid(message.id, null);
if (TextUtils.isEmpty(message.msgid)) { if (TextUtils.isEmpty(message.msgid)) {
// Draft might be created somewhere else // Draft might be created somewhere else
@ -549,8 +549,6 @@ class Core {
try { try {
db.beginTransaction(); db.beginTransaction();
List<EntityRule> rules = db.rule().getEnabledRules(folder.id);
if (folder.id.equals(message.folder)) { if (folder.id.equals(message.folder)) {
if (EntityFolder.DRAFTS.equals(folder.type)) { if (EntityFolder.DRAFTS.equals(folder.type)) {
Log.i(folder.name + " Setting id=" + message.id + " uid=" + uid); Log.i(folder.name + " Setting id=" + message.id + " uid=" + uid);