Skip contacts in trash and junk

This commit is contained in:
M66B 2019-03-15 07:13:56 +00:00
parent 83e4197bf9
commit 6ed3b1c6ab
1 changed files with 4 additions and 1 deletions

View File

@ -1213,7 +1213,10 @@ class Core {
attachment.id = db.attachment().insertAttachment(attachment);
}
if (!folder.isOutgoing() && !EntityFolder.ARCHIVE.equals(folder.type)) {
if (!folder.isOutgoing() &&
!EntityFolder.ARCHIVE.equals(folder.type) &&
!EntityFolder.TRASH.equals(folder.type) &&
!EntityFolder.JUNK.equals(folder.type)) {
Address[] replies = (message.reply != null ? message.reply : message.from);
if (replies != null) {
// Check if from self