diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index d1ac0c028f..71f784446a 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1791,7 +1791,7 @@ public class AdapterMessage extends RecyclerView.Adapter attachments = db.attachment().getAttachments(id); for (EntityAttachment attachment : attachments) - if (attachment.available && "text/calendar".equals(attachment.type)) { + if (attachment.available && "text/calendar".equals(attachment.getMimeType())) { File file = attachment.getFile(context); ICalendar icalendar = Biweekly.parse(file).first(); VEvent event = icalendar.getEvents().get(0);