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:
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);
}
}