diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-11-21 13:06:34 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-11-21 13:41:41 +0300 |
commit | 7796ab8f9cb8c5d524e683825a431daead68d96a (patch) | |
tree | 7020880d91330ab9d17e0a7b21f41673242c4652 /lib/Controller/MessagesController.php | |
parent | 431abced4d4c80203cc4de0545cad7dd60c1c75a (diff) |
Fix ical import
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Controller/MessagesController.php')
-rwxr-xr-x | lib/Controller/MessagesController.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |