mirror of https://github.com/M66B/FairEmail.git
Clear headers on manual clean
This commit is contained in:
parent
213de839ad
commit
f4f8614eed
|
@ -460,6 +460,9 @@ public interface DaoMessage {
|
|||
@Query("UPDATE message SET notifying = 0")
|
||||
int clearNotifyingMessages();
|
||||
|
||||
@Query("UPDATE message SET headers = NULL WHERE headers IS NOT NULL")
|
||||
int clearMessageHeaders();
|
||||
|
||||
@Query("DELETE FROM message WHERE id = :id")
|
||||
int deleteMessage(long id);
|
||||
|
||||
|
|
|
@ -98,6 +98,9 @@ public class WorkerCleanup extends Worker {
|
|||
// Restore alarms
|
||||
for (EntityMessage message : db.message().getSnoozed())
|
||||
EntityMessage.snooze(context, message.id, message.ui_snoozed);
|
||||
|
||||
int headers = db.message().clearMessageHeaders();
|
||||
Log.i("Cleared message headers=" + headers);
|
||||
}
|
||||
|
||||
long now = new Date().getTime();
|
||||
|
|
Loading…
Reference in New Issue