1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 10:47:28 +00:00

Copy ics as attachment

This commit is contained in:
M66B 2023-02-09 13:42:03 +01:00
parent da5bea4569
commit e562db96ad

View file

@ -5345,8 +5345,10 @@ public class FragmentCompose extends FragmentBase {
attachment.progress = null;
attachment.available = true;
attachment.id = db.attachment().insertAttachment(attachment);
File file = attachment.getFile(context);
ics.renameTo(file);
Helper.copy(ics, file);
ics.delete();
ICalendar icalendar = Biweekly.parse(file).first();
VEvent event = icalendar.getEvents().get(0);