diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-12-20 11:35:06 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-02-02 10:30:06 +0100 |
commit | dde5c46a3eb7c6dcee47795590619ccd393577d2 (patch) | |
tree | 5351227347b92e5d69a49b632ea138e314eea013 /apps/dav/lib/CalDAV | |
parent | fc4e87a2dfc5ff53bc9f15da13f355dd285769a9 (diff) | |
download | nextcloud-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.php | 7 |
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); } |