Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-11-21 13:06:34 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-11-21 13:41:41 +0300
commit7796ab8f9cb8c5d524e683825a431daead68d96a (patch)
tree7020880d91330ab9d17e0a7b21f41673242c4652 /lib/Controller/MessagesController.php
parent431abced4d4c80203cc4de0545cad7dd60c1c75a (diff)
Fix ical import
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Controller/MessagesController.php')
-rwxr-xr-xlib/Controller/MessagesController.php2
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);
}
}