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
1 change: 1 addition & 0 deletions lib/BackgroundJob/MaximumCallDuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Talk\BackgroundJob;

use OCA\Talk\Manager;
Expand Down
1 change: 1 addition & 0 deletions lib/BackgroundJob/RetryNotificationsJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Talk\BackgroundJob;

use OCA\Talk\Federation\BackendNotifier;
Expand Down
1 change: 0 additions & 1 deletion lib/Chat/CommentsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ public function getCommentsWithVerbForObjectSinceComment(
return $comments;
}


/**
* @param string $actorType
* @param string $actorId
Expand Down
1 change: 0 additions & 1 deletion lib/Chat/Notifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ private function addMentionAllToList(Room $chat, array $list, ?Participant $part
return $usersToNotify;
}


/**
* Notifies the author that wrote the comment which was replied to
*
Expand Down
2 changes: 0 additions & 2 deletions lib/Chat/Parser/SystemMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ class SystemMessage implements IEventListener {
/** @var array<string, array<string, string>> */
protected array $phoneNames = [];


protected array $currentFederatedUserDetails = [];

public function __construct(
Expand Down Expand Up @@ -1354,7 +1353,6 @@ protected function parseMissedCall(Room $room, array $parameters, ?string $curre
];
}


protected function parseCall(Room $room, string $message, array $parameters, array $params): array {
$actorIsSystem = $params['actor']['type'] === 'guest' && $params['actor']['id'] === 'guest/' . Attendee::ACTOR_ID_SYSTEM;
$maxDuration = $this->appConfig->getAppValueInt('max_call_duration');
Expand Down
2 changes: 0 additions & 2 deletions lib/Collaboration/Reference/TalkReferenceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public function __construct(
) {
}


#[\Override]
public function matchReference(string $referenceText): bool {
return $this->getTalkAppLinkToken($referenceText) !== null;
Expand Down Expand Up @@ -158,7 +157,6 @@ protected function fetchReference(Reference $reference): void {
$description = $room->getDescription();
}


/**
* If linking to a comment and the user is already a participant
* Title is "Message of {user} in {conversation}"
Expand Down
1 change: 0 additions & 1 deletion lib/Command/Turn/Add.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}
}


$servers[] = [
'schemes' => $schemes,
'server' => $server,
Expand Down
1 change: 0 additions & 1 deletion lib/Controller/AvatarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ protected function getPlaceholderResponse(bool $darkTheme): FileDisplayResponse
);
$response->cacheFor(60 * 15, false, true);
return $response;

}

/**
Expand Down
1 change: 0 additions & 1 deletion lib/Controller/CallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ public function joinCall(?int $flags = null, bool $silent = false, bool $recordi
// Force silent join for voice rooms
$silent = $silent || ($this->room->getAttributes() & RoomAttributes::VOICE_ROOM->value);


try {
$this->participantService->changeInCall($this->room, $this->participant, $flags, silent: $silent, lastJoinedCall: $lastJoinedCall->getTimestamp());
$this->roomService->setActiveSince($this->room, $this->participant, $lastJoinedCall, $flags, silent: $silent, silentFor: $silentFor);
Expand Down
1 change: 0 additions & 1 deletion lib/Controller/CallNotificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class CallNotificationController extends OCSController {
public const CASE_MISSED_CALL = 2;
public const CASE_PARTICIPANT_JOINED = 3;


public function __construct(
string $appName,
IRequest $request,
Expand Down
2 changes: 0 additions & 2 deletions lib/Controller/ChatController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,6 @@ public function clearHistory(): DataResponse {
$systemMessage = $this->messageParser->createMessage($this->room, $this->participant, $systemMessageComment, $this->l);
$this->messageParser->parseMessage($systemMessage);


$data = $systemMessage->toArray($this->getResponseFormat(), null);

$bridge = $this->matterbridgeManager->getBridgeOfRoom($this->room);
Expand Down Expand Up @@ -2355,7 +2354,6 @@ public function mentions(string $search, int $limit = 20, bool $includeStatus =
return new DataResponse($results);
}


/**
* @param array $results
* @param array<string, IUserStatus> $statuses
Expand Down
1 change: 0 additions & 1 deletion lib/Controller/FilesIntegrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ public function getRoomByFileId(string $fileId): DataResponse {
throw new OCSException($this->l->t('File is not shared, or shared but not with the user'), Http::STATUS_UNAUTHORIZED);
}


$node = $this->util->getAnyNodeOfFileAccessibleByUser($fileId, $currentUser->getUID());
if ($node === null) {
throw new OCSNotFoundException($this->l->t('File is not shared, or shared but not with the user'));
Expand Down
1 change: 0 additions & 1 deletion lib/Controller/HostedSignalingServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ public function requestTrial(string $url, string $name, string $email, string $l
return new DataResponse(['message' => $e->getMessage()], Http::STATUS_BAD_REQUEST);
}


return new DataResponse($accountInfo);
}

Expand Down
1 change: 0 additions & 1 deletion lib/Controller/RoomController.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ public function getBreakoutRooms(): DataResponse {
$return[] = $this->formatRoom($room, $participant, null, false, true, true);
}


return new DataResponse($return);
}

Expand Down
1 change: 0 additions & 1 deletion lib/Controller/SignalingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ public function sendMessages(string $token, string $messages): DataResponse {
break;
}


if ($decodedMessage['type'] === 'control') {
if (!$participant->hasModeratorPermissions(false)) {
break;
Expand Down
2 changes: 0 additions & 2 deletions lib/Controller/ThreadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public function getRecentActiveThreads(int $limit = 50): DataResponse {
return new DataResponse($list);
}


/**
* Get subscribed threads for a user
*
Expand Down Expand Up @@ -375,7 +374,6 @@ public function setNotificationLevel(int $messageId, int $level): DataResponse {
return new DataResponse(['error' => 'level'], Http::STATUS_BAD_REQUEST);
}


try {
$thread = $this->threadService->findByThreadId($this->room->getId(), $messageId);
} catch (DoesNotExistException) {
Expand Down
1 change: 0 additions & 1 deletion lib/Dashboard/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ public function isAttendee(array $attendees, string $email): bool {
return false;
}


public function isOrganizer(array $organizer, string $email): bool {
// Calendar emails start with 'mailto:'
return substr((string)$organizer[0], 7) === $email;
Expand Down
1 change: 0 additions & 1 deletion lib/Events/AReactionEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public function getReactionMessage(): ?IComment {
return $this->reactionMessage;
}


public function getActorType(): string {
return $this->actorType;
}
Expand Down
1 change: 0 additions & 1 deletion lib/Events/ARoomEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

abstract class ARoomEvent extends Event {


public function __construct(
protected Room $room,
) {
Expand Down
2 changes: 0 additions & 2 deletions lib/Events/BeforeDuplicateShareSentEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Events;

use OCP\EventDispatcher\Event;
Expand All @@ -19,7 +18,6 @@ public function __construct(
parent::__construct();
}


public function getShare(): IShare {
return $this->share;
}
Expand Down
1 change: 0 additions & 1 deletion lib/Events/RoomPasswordVerifyEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class RoomPasswordVerifyEvent extends ARoomEvent {
protected ?bool $isPasswordValid = null;
protected string $redirectUrl = '';


public function __construct(
Room $room,
private readonly string $password,
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/CannotReachRemoteException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class CannotReachRemoteException extends \Exception {
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/DialOutFailedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class DialOutFailedException extends \RuntimeException {
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/FederationRestrictionException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class FederationRestrictionException extends \InvalidArgumentException {
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/ForbiddenException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class ForbiddenException extends \Exception {
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/GuestImportException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class GuestImportException extends \Exception {
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/ImpossibleToKillException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class ImpossibleToKillException extends \Exception {
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/InvalidPasswordException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class InvalidPasswordException extends \Exception {
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/InvalidRoomException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class InvalidRoomException extends \InvalidArgumentException {
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/MessagingNotAllowedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

/**
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/ParticipantNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class ParticipantNotFoundException extends \OutOfBoundsException {
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/PermissionsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class PermissionsException extends \Exception {
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/RoomHasNoModeratorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class RoomHasNoModeratorException extends \Exception {
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/RoomNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class RoomNotFoundException extends \OutOfBoundsException {
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/UnauthorizedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class UnauthorizedException extends \Exception {
Expand Down
1 change: 0 additions & 1 deletion lib/Exceptions/WrongPermissionsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/


namespace OCA\Talk\Exceptions;

class WrongPermissionsException extends \Exception {
Expand Down
1 change: 0 additions & 1 deletion lib/Federation/FederationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ public function acceptRemoteRoomShare(IUser $user, int $shareId): Participant {
throw new \InvalidArgumentException('state');
}


$cloudId = $this->cloudIdManager->getCloudId($user->getUID(), null);

// Add user to the room
Expand Down
1 change: 0 additions & 1 deletion lib/Federation/Proxy/TalkV1/Controller/ChatController.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ public function receiveMessages(
int $markNotificationsAsRead): DataResponse {
$cacheKey = sha1(json_encode([$room->getRemoteServer(), $room->getRemoteToken()]));


if ($lookIntoFuture && $markNotificationsAsRead && $participant->getAttendee()->getActorType() === Attendee::ACTOR_USERS) {
$this->notifier->markMentionNotificationsRead($room, $participant->getAttendee()->getActorId());
}
Expand Down
1 change: 0 additions & 1 deletion lib/Federation/Proxy/TalkV1/Controller/PollController.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ public function votePoll(Room $room, Participant $participant, int $pollId, arra
return new DataResponse($data);
}


/**
* @return DataResponse<Http::STATUS_OK, TalkPollDraft, array{}>|DataResponse<Http::STATUS_CREATED, TalkPoll, array{}>|DataResponse<Http::STATUS_BAD_REQUEST, array{error: 'draft'|'options'|'poll'|'question'|'room'}, array{}>
* @throws CannotReachRemoteException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ public function delete(Room $room, Participant $participant, int $messageId, str
return new DataResponse($this->formatReactions($format, $data), $statusCode);
}


/**
* Get a list of reactions for a message
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ public function renameThread(Room $room, Participant $participant, int $threadId
return new DataResponse($data, Http::STATUS_OK);
}


/**
* @see \OCA\Talk\Controller\ThreadController::setNotificationLevel()
*
Expand Down
2 changes: 1 addition & 1 deletion lib/Listener/CalDavEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/

namespace OCA\Talk\Listener;

use OCA\DAV\CalDAV\TimezoneService;
Expand Down Expand Up @@ -176,7 +177,6 @@ public function handle(Event $event): void {
return;
}


// So we can unset names & descriptions in case the user deleted them
$this->roomService->setName($room, $name ?? $this->l10n->t('Meeting'));
$this->roomService->setDescription($room, $description ?? '');
Expand Down
1 change: 0 additions & 1 deletion lib/Listener/CircleMembershipListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ protected function addingCircleMemberEvent(AddingCircleMemberEvent $event): void
}
}


if (empty($roomsToAdd)) {
// The circle is not in any room => bye!
return;
Expand Down
Loading
Loading