Merge pull request #45051 from nextcloud/backport/44938/stable27

[stable27] fix(CalDAV): remove UNKNOWN from room / resource consideration
This commit is contained in:
Richard Steinmetz 2024-04-26 14:24:57 +02:00 committed by GitHub
commit 3cc5b6591e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -680,7 +680,7 @@ class IMipService {
return false;
}
$type = $cuType->getValue() ?? 'INDIVIDUAL';
if (\in_array(strtoupper($type), ['RESOURCE', 'ROOM', 'UNKNOWN'], true)) {
if (\in_array(strtoupper($type), ['RESOURCE', 'ROOM'], true)) {
// Don't send emails to things
return true;
}