Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ private function generateSingleId(CalendarShare $share): void {
}


/**
* @param string $principalUri
*
* @return FederatedUser
* @throws Exception
*/
private function extractEntity(string $principalUri): FederatedUser {
[$shareType, $recipient] = explode('/', substr($principalUri, 11), 2);

Expand Down
5 changes: 4 additions & 1 deletion lib/RelatedResourceProviders/DeckRelatedResourceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ private function convertToRelatedResource(DeckShare $share): IRelatedResource {
*/
private function assignEntities(array $shares): void {
foreach ($shares as $share) {
$this->assignEntity($share);
try {
$this->assignEntity($share);
} catch (Exception $e) {
}
}
}

Expand Down
8 changes: 5 additions & 3 deletions lib/RelatedResourceProviders/TalkRelatedResourceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ public function getRelatedToEntity(FederatedUser $entity): array {
switch ($entity->getBasedOn()->getSource()) {
case Member::TYPE_USER:
$shares = $this->talkRoomRequest->getSharesToUser($entity->getUserId());

return [];
break;

case Member::TYPE_GROUP:
$shares = $this->talkRoomRequest->getSharesToGroup($entity->getUserId());
Expand Down Expand Up @@ -168,7 +167,10 @@ private function convertToRelatedResource(TalkRoom $share): IRelatedResource {
*/
private function assignEntities(array $shares): void {
foreach ($shares as $share) {
$this->assignEntity($share);
try {
$this->assignEntity($share);
} catch (Exception $e) {
}
}
}

Expand Down