Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Rudolf <github.com@daniel-rudolf.de>2020-05-12 16:38:05 +0300
committerDaniel Rudolf <github.com@daniel-rudolf.de>2020-05-12 16:38:14 +0300
commita238208d3a9bde0717c8277ff66e9ff96f7e00dc (patch)
tree5974a18af0f68add4704ffb0868d554b88ab1716 /lib
parent2efadfb80d5eec9266c02a69939917bd85335ccf (diff)
Fix `talk:room:update --owner` adding multiple owners
Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Command/Room/TRoomCommand.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Command/Room/TRoomCommand.php b/lib/Command/Room/TRoomCommand.php
index 1b65d8d0d..0fb341ef5 100644
--- a/lib/Command/Room/TRoomCommand.php
+++ b/lib/Command/Room/TRoomCommand.php
@@ -136,6 +136,8 @@ trait TRoomCommand
throw new InvalidArgumentException(sprintf("User '%s' is no participant.", $userId));
}
+ $this->unsetRoomOwner($room);
+
$room->setParticipantType($participant, Participant::OWNER);
}