Skip to content

Commit

Permalink
Merge pull request #11795 from nextcloud/bugfix/noid/remove-duplicate…
Browse files Browse the repository at this point in the history
…-isFederatedRemoteRoom

fix(federation): Remove duplicate method isFederatedRemoteRoom() vs isFederatedConversation()
  • Loading branch information
nickvergessen authored Mar 14, 2024
2 parents 18f1e51 + 53bd7b6 commit c9ef4b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 3 additions & 3 deletions lib/Federation/CloudFederationProviderTalk.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ private function shareUnshared(int $remoteAttendeeId, array $notification): arra
}

// Sanity check to make sure the room is a remote room
if (!$room->isFederatedRemoteRoom()) {
if (!$room->isFederatedConversation()) {
throw new ShareNotFound(FederationManager::OCM_RESOURCE_NOT_FOUND);
}

Expand Down Expand Up @@ -303,7 +303,7 @@ private function roomModified(int $remoteAttendeeId, array $notification): array
}

// Sanity check to make sure the room is a remote room
if (!$room->isFederatedRemoteRoom()) {
if (!$room->isFederatedConversation()) {
throw new ShareNotFound(FederationManager::OCM_RESOURCE_NOT_FOUND);
}

Expand Down Expand Up @@ -341,7 +341,7 @@ private function messagePosted(int $remoteAttendeeId, array $notification): arra
}

// Sanity check to make sure the room is a remote room
if (!$room->isFederatedRemoteRoom()) {
if (!$room->isFederatedConversation()) {
throw new ShareNotFound(FederationManager::OCM_RESOURCE_NOT_FOUND);
}

Expand Down
7 changes: 0 additions & 7 deletions lib/Room.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 +415,6 @@ public function getRemoteToken(): string {
return $this->remoteToken;
}

/**
* @deprecated
*/
public function isFederatedRemoteRoom(): bool {
return $this->remoteServer !== '';
}

public function setParticipant(?string $userId, Participant $participant): void {
// FIXME Also used with cloudId, need actorType checking?
$this->currentUser = $userId;
Expand Down

0 comments on commit c9ef4b7

Please sign in to comment.