diff options
author | Daniel Rudolf <github.com@daniel-rudolf.de> | 2020-05-12 16:38:05 +0300 |
---|---|---|
committer | Daniel Rudolf <github.com@daniel-rudolf.de> | 2020-05-12 16:38:14 +0300 |
commit | a238208d3a9bde0717c8277ff66e9ff96f7e00dc (patch) | |
tree | 5974a18af0f68add4704ffb0868d554b88ab1716 /lib | |
parent | 2efadfb80d5eec9266c02a69939917bd85335ccf (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.php | 2 |
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); } |