mirror of https://github.com/M66B/FairEmail.git
Fixed flagging uid
This commit is contained in:
parent
5002f8c518
commit
3c2878c1bf
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue