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
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2019-07-10 13:05:24 +0300
committerGitHub <noreply@github.com>2019-07-10 13:05:24 +0300
commit4bd464b5c006c2ff7bcdbdc0813f8ff9593bf9ec (patch)
tree2397449f59f37cfbbb6528b4ee5708e6b359020d /lib/Listener.php
parenta9719383bdd9f232be84c6cc8fb5eb5b084f9f0a (diff)
parent0a51cc73d089cc96dd0ba82a3200b71e3cf0f90c (diff)
Merge pull request #1921 from nextcloud/bugfix/1857/retain-one-to-one-chats
Retain one-to-one conversations when a user is deleted
Diffstat (limited to 'lib/Listener.php')
-rw-r--r--lib/Listener.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Listener.php b/lib/Listener.php
index e96906003..4a5149b02 100644
--- a/lib/Listener.php
+++ b/lib/Listener.php
@@ -85,7 +85,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);