diff options
author | Joas Schilling <coding@schilljs.com> | 2019-06-25 19:36:53 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-06-25 19:36:53 +0300 |
commit | 4b65fe3e1b12780a30f5a1af9b0c8db848c3da56 (patch) | |
tree | c27260f76d4a33961cac4010b0266f23be1b6a4a /lib/Listener.php | |
parent | b1b08610b8d4884d7fbd31dead2576db998be4fa (diff) |
Retain one-to-one conversations when a user is deleted
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Listener.php')
-rw-r--r-- | lib/Listener.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Listener.php b/lib/Listener.php index 7f7c918ac..fc73913ea 100644 --- a/lib/Listener.php +++ b/lib/Listener.php @@ -73,7 +73,7 @@ class Listener { $rooms = $this->manager->getRoomsForParticipant($user->getUID()); foreach ($rooms as $room) { - if ($room->getType() === Room::ONE_TO_ONE_CALL || $room->getNumberOfParticipants() === 1) { + if ($room->getNumberOfParticipants() === 1) { $room->deleteRoom(); } else { $room->removeUser($user, Room::PARTICIPANT_REMOVED); |