Create new message on notify wake up

pull/167/head
M66B 5 years ago
parent 6111651324
commit c8ef1d8270

@ -386,8 +386,12 @@ 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();

Loading…
Cancel
Save