Update jingle.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@7775 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2007-03-29 14:02:41 +00:00
committed by derek
parent 71cb58d0f4
commit 5bc8f28b40
2 changed files with 17 additions and 11 deletions

Binary file not shown.

View File

@ -37,14 +37,6 @@ import org.jivesoftware.spark.ui.TranscriptWindow;
import org.jivesoftware.spark.util.SwingWorker;
import org.jivesoftware.spark.util.log.Log;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.SwingUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.Style;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyledDocument;
import java.awt.event.ActionEvent;
import java.util.ArrayList;
import java.util.Collection;
@ -53,6 +45,14 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.SwingUtilities;
import javax.swing.text.BadLocationException;
import javax.swing.text.Style;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyledDocument;
/**
* A simple Jingle Plugin for Spark that uses server Media Proxy for the transport and NAT Traversal
@ -175,10 +175,16 @@ public class JinglePlugin implements Plugin, Phone {
Log.error(e);
}
if (discoverInfo != null) {
// Get the discovered items of the queried XMPP entity
supportsJingle = discoverInfo.containsFeature(JINGLE_NAMESPACE);
jingleFeature.put(jid, supportsJingle);
}
else {
jingleFeature.put(jid, false);
supportsJingle = false;
}
}
if (!supportsJingle) {
return Collections.emptyList();