1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Process calendar events in the sent-messages folder too

This commit is contained in:
M66B 2023-10-25 17:51:39 +02:00
parent decd57c460
commit 56e727d282

View file

@ -4427,18 +4427,19 @@ 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 || !received || account == null || account.calendar == null) {
if (!permission || !(sent || 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) +
" received=" + received);
" sent=" + sent + " received=" + received);
return;
}