mirror of
https://github.com/nextcloud/mail.git
synced 2026-01-13 20:23:59 +00:00
fixup! feat: automated appointment creation
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
This commit is contained in:
@ -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'],
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user