Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-16 18:36:32 +0000
committerEike Stepper2007-10-16 18:36:32 +0000
commitfc88843d9feef67e8d492962e00288261d21e234 (patch)
tree1c64e2012f6a4876beab69e1664ec0d6fac07e61 /plugins/org.eclipse.net4j.buddies.server/src/org
parent59924eae7c4e46412ca8a9a3597887e2344d9ca2 (diff)
downloadcdo-fc88843d9feef67e8d492962e00288261d21e234.tar.gz
cdo-fc88843d9feef67e8d492962e00288261d21e234.tar.xz
cdo-fc88843d9feef67e8d492962e00288261d21e234.zip
[206224] Provide chat example
https://bugs.eclipse.org/bugs/show_bug.cgi?id=206224
Diffstat (limited to 'plugins/org.eclipse.net4j.buddies.server/src/org')
-rw-r--r--plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerCollaborationLeftIndication.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerCollaborationLeftIndication.java b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerCollaborationLeftIndication.java
index b92466e6e2..4d60348f90 100644
--- a/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerCollaborationLeftIndication.java
+++ b/plugins/org.eclipse.net4j.buddies.server/src/org/eclipse/net4j/buddies/internal/server/protocol/ServerCollaborationLeftIndication.java
@@ -3,6 +3,7 @@ package org.eclipse.net4j.buddies.internal.server.protocol;
import org.eclipse.net4j.buddies.internal.protocol.Collaboration;
import org.eclipse.net4j.buddies.internal.protocol.CollaborationLeftIndication;
import org.eclipse.net4j.buddies.internal.protocol.CollaborationLeftNotification;
+import org.eclipse.net4j.buddies.internal.server.BuddyAdmin;
import org.eclipse.net4j.buddies.protocol.IBuddy;
import org.eclipse.net4j.buddies.server.IBuddyAdmin;
import org.eclipse.net4j.util.ObjectUtil;
@@ -37,5 +38,9 @@ public class ServerCollaborationLeftIndication extends CollaborationLeftIndicati
}
super.collaborationLeft(collaboration, userID);
+ if (collaboration.getBuddies().length == 0 && !collaboration.isPublic())
+ {
+ BuddyAdmin.INSTANCE.removeCollaboration(collaboration.getID());
+ }
}
} \ No newline at end of file

Back to the top