summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CalDAV
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-12-20 11:35:06 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-02-02 10:30:06 +0100
commitdde5c46a3eb7c6dcee47795590619ccd393577d2 (patch)
tree5351227347b92e5d69a49b632ea138e314eea013 /apps/dav/lib/CalDAV
parentfc4e87a2dfc5ff53bc9f15da13f355dd285769a9 (diff)
downloadnextcloud-server-dde5c46a3eb7c6dcee47795590619ccd393577d2.tar.gz
nextcloud-server-dde5c46a3eb7c6dcee47795590619ccd393577d2.zip
Migrate to Symfony Mailer
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/dav/lib/CalDAV')
-rw-r--r--apps/dav/lib/CalDAV/Schedule/IMipPlugin.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
index be238ae5afb..50390549570 100644
--- a/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
+++ b/apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
@@ -172,9 +172,14 @@ class IMipPlugin extends SabreIMipPlugin {
return;
}
- $senderName = $iTipMessage->senderName ?: null;
$recipientName = $iTipMessage->recipientName ?: null;
+ /** @var Parameter|string|null $senderName */
+ $senderName = $iTipMessage->senderName ?: null;
+ if($senderName instanceof Parameter) {
+ $senderName = $senderName->getValue() ?? null;
+ }
+
if ($senderName === null || empty(trim($senderName))) {
$senderName = $this->userManager->getDisplayName($this->userId);
}