Skip to content

Commit

Permalink
fixup! feat(federation): Add TalkV1 federation proxy for mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvergessen committed Feb 15, 2024
1 parent 670019c commit a1f3d25
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Federation/CloudFederationProviderTalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ public function shareReceived(ICloudFederationShare $share): string {
$remoteId = $share->getProviderId();
$roomToken = $share->getResourceName();
$roomName = $share->getProtocol()['roomName'];
$invitedCloudId = $share->getProtocol()['invitedCloudId'] ?? $this->cloudIdManager->getCloudId($shareWith, null);
if (isset($share->getProtocol()['invitedCloudId'])) {
$invitedCloudId = $share->getProtocol()['invitedCloudId'];
} else {
$this->logger->debug('Received a federation invite without invitedCloudId, falling back to shareWith');
$invitedCloudId = $this->cloudIdManager->getCloudId($shareWith, null);
}
$roomType = (int) $roomType;
$sharedByDisplayName = $share->getSharedByDisplayName();
$sharedByFederatedId = $share->getSharedBy();
Expand Down

0 comments on commit a1f3d25

Please sign in to comment.