Merge pull request #15091 from nextcloud/bugfix/noid/expose-instant-meetings-retention

This commit is contained in:
Maksim Sukharev 2025-05-15 13:46:02 +02:00 committed by GitHub
commit 4c1d4eedc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -947,7 +947,7 @@ class RoomController extends AEnvironmentAwareOCSController {
#[PublicPage]
#[RequireModeratorParticipant]
public function unbindRoomFromObject(): DataResponse {
if ($this->room->getObjectType() === Room::OBJECT_TYPE_EVENT) {
if ($this->room->getObjectType() === Room::OBJECT_TYPE_EVENT || $this->room->getObjectType() === Room::OBJECT_TYPE_INSTANT_MEETING) {
$this->roomService->resetObject($this->room);
} elseif ($this->room->getObjectType() === Room::OBJECT_TYPE_PHONE_TEMPORARY) {
$this->roomService->setObject($this->room, Room::OBJECT_TYPE_PHONE_PERSIST, $this->room->getObjectId());