Create new message on notify wake up

This commit is contained in:
M66B 2019-11-08 08:25:42 +01:00
parent 6111651324
commit c8ef1d8270
1 changed files with 5 additions and 1 deletions

View File

@ -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 {