mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-11 11:33:09 +02:00
Use fixed attachment type for ICS recognition
This commit is contained in:
@@ -1791,7 +1791,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
if (show_inline || !inline || !attachment.available)
|
||||
a.add(attachment);
|
||||
|
||||
if (attachment.available && "text/calendar".equals(attachment.type)) {
|
||||
if (attachment.available && "text/calendar".equals(attachment.getMimeType())) {
|
||||
calendar = true;
|
||||
bindCalendar(message, attachment);
|
||||
}
|
||||
@@ -1960,7 +1960,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
|
||||
List<EntityAttachment> 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);
|
||||
|
||||
Reference in New Issue
Block a user