Added logging

This commit is contained in:
M66B 2023-10-26 11:43:36 +02:00
parent eb4806ad64
commit ad0c8058d0
1 changed files with 5 additions and 3 deletions

View File

@ -4448,20 +4448,22 @@ public class MessageHelper {
VEvent event = icalendar.getEvents().get(0); VEvent event = icalendar.getEvents().get(0);
// https://www.rfc-editor.org/rfc/rfc5546#section-3.2 // https://www.rfc-editor.org/rfc/rfc5546#section-3.2
if (method != null && method.isCancel()) if (method != null && method.isCancel()) {
EntityLog.log(context, "Event cancelled, deleting");
CalendarHelper.delete(context, event, message); CalendarHelper.delete(context, event, message);
else if (method == null || method.isRequest() || method.isReply()) { } else if (method == null || method.isRequest() || method.isReply()) {
int status = CalendarContract.Events.STATUS_TENTATIVE; int status = CalendarContract.Events.STATUS_TENTATIVE;
if (method != null && method.isReply()) if (method != null && method.isReply())
status = CalendarHelper.getReplyStatus(context, event, message); status = CalendarHelper.getReplyStatus(context, event, message);
if (status == CalendarContract.Events.STATUS_CANCELED) { if (status == CalendarContract.Events.STATUS_CANCELED) {
EntityLog.log(context, "Event attendee cancelled, deleting");
CalendarHelper.delete(context, event, message); CalendarHelper.delete(context, event, message);
return; return;
} }
if (status == CalendarContract.Events.STATUS_TENTATIVE && !ical_tentative) { if (status == CalendarContract.Events.STATUS_TENTATIVE && !ical_tentative) {
EntityLog.log(context, "Tentative event not processed"); EntityLog.log(context, "Event tentative off, not processing");
return; return;
} }