mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-18 21:28:54 +00:00
Reset identity on send
This commit is contained in:
parent
a35c9c6b7a
commit
5002f8c518
2 changed files with 4 additions and 0 deletions
|
@ -320,6 +320,9 @@ public interface DaoMessage {
|
||||||
@Query("UPDATE message SET folder = :folder WHERE id = :id")
|
@Query("UPDATE message SET folder = :folder WHERE id = :id")
|
||||||
int setMessageFolder(long id, long folder);
|
int setMessageFolder(long id, long folder);
|
||||||
|
|
||||||
|
@Query("UPDATE message SET identity = :identity WHERE id = :id")
|
||||||
|
int setMessageIdentity(long id, Long identity);
|
||||||
|
|
||||||
@Query("UPDATE message SET uid = :uid WHERE id = :id")
|
@Query("UPDATE message SET uid = :uid WHERE id = :id")
|
||||||
int setMessageUid(long id, Long uid);
|
int setMessageUid(long id, Long uid);
|
||||||
|
|
||||||
|
|
|
@ -355,6 +355,7 @@ public class ServiceSend extends LifecycleService {
|
||||||
try {
|
try {
|
||||||
db.beginTransaction();
|
db.beginTransaction();
|
||||||
|
|
||||||
|
db.message().setMessageIdentity(message.id, null);
|
||||||
db.message().setMessageSent(message.id, time);
|
db.message().setMessageSent(message.id, time);
|
||||||
db.message().setMessageReceiptRequested(message.id, ident.delivery_receipt || ident.read_receipt);
|
db.message().setMessageReceiptRequested(message.id, ident.delivery_receipt || ident.read_receipt);
|
||||||
db.message().setMessageSeen(message.id, true);
|
db.message().setMessageSeen(message.id, true);
|
||||||
|
|
Loading…
Reference in a new issue