fixup! feat: automated appointment creation

Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
This commit is contained in:
SebastianKrupinski
2026-01-13 09:34:18 -05:00
parent 298907f195
commit 76e2de37b9
2 changed files with 11 additions and 6 deletions

View File

@ -40,7 +40,7 @@ class IMipService {
MailboxMapper $mailboxMapper,
MailManager $mailManager,
MessageMapper $messageMapper,
ServerVersion $serverVersion
ServerVersion $serverVersion,
) {
$this->accountService = $accountService;
$this->calendarManager = $manager;
@ -156,6 +156,10 @@ class IMipService {
$processed = $this->calendarManager->handleIMipCancel($principalUri, $sender, $replyTo, $recipient, $schedulingInfo['contents']);
}
} else {
if (!method_exists($this->calendarManager, 'handleIMip')) {
$this->logger->error('iMIP handling is not supported by server version installed.');
continue;
}
$processed = $this->calendarManager->handleIMip(
$userId,
$schedulingInfo['contents'],

View File

@ -13,12 +13,13 @@ use OCP\ServerVersion as OCPServerVersion;
class ServerVersion {
public function __construct(
private OCPServerVersion $serverVersion
) {}
public function __construct(
private OCPServerVersion $serverVersion,
) {
}
public function getMajorVersion(): int {
public function getMajorVersion(): int {
return $this->serverVersion->getMajorVersion();
}
}
}