Revert "Added logging"

This reverts commit ad0c8058d0.
This commit is contained in:
M66B 2023-10-26 12:50:13 +02:00
parent 814e74db2d
commit 958ef7a714
1 changed files with 3 additions and 5 deletions

View File

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