mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +00:00
Auto add calendar events without method
This commit is contained in:
parent
f34dd3dfda
commit
ee3475e998
1 changed files with 2 additions and 5 deletions
|
@ -3945,16 +3945,13 @@ public class MessageHelper {
|
||||||
ICalendar icalendar = Biweekly.parse(file).first();
|
ICalendar icalendar = Biweekly.parse(file).first();
|
||||||
|
|
||||||
Method method = icalendar.getMethod();
|
Method method = icalendar.getMethod();
|
||||||
if (method == null)
|
|
||||||
return;
|
|
||||||
|
|
||||||
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.isRequest() || method.isCancel())
|
if (method == null || method.isRequest() || method.isCancel())
|
||||||
CalendarHelper.delete(context, event, message);
|
CalendarHelper.delete(context, event, message);
|
||||||
|
|
||||||
if (method.isRequest()) {
|
if (method == null || method.isRequest()) {
|
||||||
String selectedAccount;
|
String selectedAccount;
|
||||||
String selectedName;
|
String selectedName;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue