Skip to content

Commit

Permalink
linagora/esn-frontend-calendar#477: Emit an event when an address boo…
Browse files Browse the repository at this point in the history
…k is delegated to a user to display it in real time
  • Loading branch information
Huy TA QUOC committed Mar 26, 2021
1 parent 73ececd commit 3a3d563
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/CardDAV/Backend/Mongo.php
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,12 @@ function updateInvites($addressBookId, array $sharees) {
'share_displayname' => $this->getValue($sharee->properties, '{DAV:}displayname')
];
$shareeCollection->insertOne($newShareeAddressBook);

$this->eventEmitter->emit('sabre:addressBookSubscriptionCreated', [
[
'path' => $this->buildAddressBookPath($newShareeAddressBook['principaluri'], $newShareeAddressBook['uri'])
]
]);
}
}

Expand Down

0 comments on commit 3a3d563

Please sign in to comment.