Skip to content

Commit bd4a120

Browse files
committed
Rename command to LeaveConversation
1 parent ea44dd1 commit bd4a120

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

files/lib/data/conversation/ConversationAction.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use wcf\data\user\group\UserGroup;
1212
use wcf\page\ConversationPage;
1313
use wcf\system\clipboard\ClipboardHandler;
14-
use wcf\system\conversation\command\Leave;
14+
use wcf\system\conversation\command\LeaveConversation;
1515
use wcf\system\conversation\ConversationHandler;
1616
use wcf\system\database\util\PreparedStatementConditionBuilder;
1717
use wcf\system\event\EventHandler;
@@ -591,7 +591,7 @@ public function validateHideConversation()
591591
*/
592592
public function hideConversation()
593593
{
594-
(new Leave($this->objectIDs, $this->parameters['hideConversation']))();
594+
(new LeaveConversation($this->objectIDs, $this->parameters['hideConversation']))();
595595

596596
return [
597597
'actionName' => 'hideConversation',

files/lib/system/conversation/command/Leave.class.php renamed to files/lib/system/conversation/command/LeaveConversation.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
1818
* @since 6.2
1919
*/
20-
final class Leave
20+
final class LeaveConversation
2121
{
2222
public function __construct(
2323
public readonly array $conversationIDs,

files/lib/system/endpoint/controller/core/conversations/LeaveConversation.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Psr\Http\Message\ServerRequestInterface;
88
use wcf\data\conversation\Conversation;
99
use wcf\http\Helper;
10-
use wcf\system\conversation\command\Leave;
1110
use wcf\system\endpoint\IController;
1211
use wcf\system\endpoint\PostRequest;
1312
use wcf\system\exception\PermissionDeniedException;
@@ -33,7 +32,7 @@ public function __invoke(ServerRequestInterface $request, array $variables): Res
3332
$parameters = Helper::mapApiParameters($request, LeaveConversationParameters::class);
3433
$hideConversation = $parameters->hideConversation;
3534

36-
(new Leave([$conversation->conversationID], $hideConversation))();
35+
(new \wcf\system\conversation\command\LeaveConversation([$conversation->conversationID], $hideConversation))();
3736

3837
return new JsonResponse([
3938
'redirectUrl' => LinkHandler::getInstance()->getLink('ConversationList'),

0 commit comments

Comments
 (0)