Revert "Process calendar events in the sent-messages folder too"

This reverts commit 56e727d282.
pull/214/head
M66B 1 year ago
parent 63f1b377d9
commit 86af24a800

@ -4427,19 +4427,18 @@ public class MessageHelper {
EntityFolder folder = (message == null ? null : db.folder().getFolder(message.folder));
EntityAccount account = (folder == null ? null : db.account().getAccount(folder.account));
boolean sent = (folder != null && EntityFolder.SENT.equals(folder.type));
boolean received = (folder != null &&
(EntityFolder.INBOX.equals(folder.type) ||
EntityFolder.SYSTEM.equals(folder.type) ||
EntityFolder.USER.equals(folder.type)));
if (!permission || !(sent || received) || account == null || account.calendar == null) {
if (!permission || !received || account == null || account.calendar == null) {
EntityLog.log(context, "Event not processed" +
" permission=" + permission +
" account=" + (account != null) +
" calendar=" + (account == null ? null : account.calendar) +
" folder=" + (folder != null) + ":" + (folder == null ? null : folder.type) +
" sent=" + sent + " received=" + received);
" received=" + received);
return;
}

Loading…
Cancel
Save