mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Checking for beta 3.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@4954 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -36,6 +36,9 @@ import org.jivesoftware.spark.util.log.Log;
|
||||
import org.jivesoftware.sparkimpl.settings.local.LocalPreferences;
|
||||
import org.jivesoftware.sparkimpl.settings.local.SettingsManager;
|
||||
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.SwingUtilities;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
@ -43,9 +46,6 @@ import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.SwingUtilities;
|
||||
|
||||
/**
|
||||
* Handles the Chat Management of each individual <code>Workspace</code>. The ChatManager is responsible
|
||||
* for creation and removal of chat rooms, transcripts, and transfers and room invitations.
|
||||
@ -98,8 +98,13 @@ public class ChatManager implements MessageEventNotificationListener {
|
||||
|
||||
SparkManager.getConnection().addPacketListener(new PacketListener() {
|
||||
public void processPacket(final Packet packet) {
|
||||
if (customList.contains(StringUtils.parseBareAddress(packet.getFrom()))) {
|
||||
cancelledNotification(packet.getFrom(), "");
|
||||
try {
|
||||
if (customList.contains(StringUtils.parseBareAddress(packet.getFrom()))) {
|
||||
cancelledNotification(packet.getFrom(), "");
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
Log.error(e);
|
||||
}
|
||||
}
|
||||
}, new PacketTypeFilter(Message.class));
|
||||
|
||||
Reference in New Issue
Block a user