Skip to content

Commit

Permalink
fixup! feat: add iMip Request Handling
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <[email protected]>
  • Loading branch information
SebastianKrupinski committed Sep 17, 2024
1 parent 854cfe7 commit 009b75f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/IMipService.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function process(): void {
$sender = $imapMessage->getFrom()->first()->getEmail();
$recipient = $account->getEmail();
foreach ($imapMessage->scheduling as $schedulingInfo) { // an IMAP message could contain more than one iMIP object
if ($schedulingInfo['method'] === 'REQUEST') {
if ($schedulingInfo['method'] === 'REQUEST' && function_exists($this->calendarManager->handleIMipRequest)) {

Check failure on line 138 in lib/Service/IMipService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

NoInterfaceProperties

lib/Service/IMipService.php:138:69: NoInterfaceProperties: Interfaces cannot have properties (see https://psalm.dev/028)
$processed = $this->calendarManager->handleIMipRequest($principalUri, $sender, $recipient, $schedulingInfo['contents']);

Check failure on line 139 in lib/Service/IMipService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

UndefinedInterfaceMethod

lib/Service/IMipService.php:139:44: UndefinedInterfaceMethod: Method OCP\Calendar\IManager::handleIMipRequest does not exist (see https://psalm.dev/181)
$message->setImipProcessed($processed);
$message->setImipError(!$processed);
Expand Down

0 comments on commit 009b75f

Please sign in to comment.