Browse Source
feat(conversation): Send switch-to signaling message when creating from one-to-one
feat(conversation): Send switch-to signaling message when creating from one-to-one
Signed-off-by: Joas Schilling <coding@schilljs.com>pull/14871/head
committed by
backportbot[bot]
9 changed files with 91 additions and 7 deletions
-
16docs/constants.md
-
8docs/events.md
-
2lib/AppInfo/Application.php
-
16lib/Controller/RoomController.php
-
24lib/Events/RoomExtendedEvent.php
-
1lib/Room.php
-
1lib/Service/RoomService.php
-
26lib/Signaling/Listener.php
-
4tests/php/Signaling/ListenerTest.php
@ -0,0 +1,24 @@ |
|||
<?php |
|||
|
|||
declare(strict_types=1); |
|||
/** |
|||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors |
|||
* SPDX-License-Identifier: AGPL-3.0-or-later |
|||
*/ |
|||
|
|||
namespace OCA\Talk\Events; |
|||
|
|||
use OCA\Talk\Room; |
|||
|
|||
class RoomExtendedEvent extends ARoomEvent { |
|||
public function __construct( |
|||
Room $oldRoom, |
|||
protected Room $newRoom, |
|||
) { |
|||
parent::__construct($oldRoom); |
|||
} |
|||
|
|||
public function getNewRoom(): Room { |
|||
return $this->newRoom; |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue