mirror of https://github.com/M66B/FairEmail.git
Create new message on notify wake up
This commit is contained in:
parent
6111651324
commit
c8ef1d8270
|
@ -386,9 +386,13 @@ public class ServiceUI extends IntentService {
|
|||
Log.i("Delayed send id=" + message.id);
|
||||
EntityOperation.queue(this, message, EntityOperation.SEND);
|
||||
} else {
|
||||
if (folder.notify)
|
||||
if (folder.notify) {
|
||||
message.id = null;
|
||||
message.id = db.message().insertMessage(message);
|
||||
db.message().deleteMessage(id);
|
||||
EntityOperation.queue(this, message, EntityOperation.SEEN, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue