From 7796ab8f9cb8c5d524e683825a431daead68d96a Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 21 Nov 2019 11:06:34 +0100 Subject: Fix ical import Signed-off-by: Christoph Wurst --- lib/Controller/MessagesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Controller/MessagesController.php') diff --git a/lib/Controller/MessagesController.php b/lib/Controller/MessagesController.php index 32a87956a..2e949df28 100755 --- a/lib/Controller/MessagesController.php +++ b/lib/Controller/MessagesController.php @@ -443,7 +443,7 @@ class MessagesController extends Controller { * @return boolean */ private function attachmentIsCalendarEvent(array $attachment): bool { - return $attachment['mime'] === 'text/calendar'; + return in_array($attachment['mime'], ['text/calendar', 'application/ics'], true); } } -- cgit v1.2.3