aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/xmpp
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-04-16 19:48:04 +0200
committerAndreas Straub <andy@strb.org>2014-04-18 00:17:34 +0200
commite29ce19f202e535f44098f280650ad892c943e52 (patch)
tree28bc824a5b80c6304dfaf82ee9fa0fed5e9069f4 /src/eu/siacs/conversations/xmpp
parenta04d736f75c793dc943c1e0ce7c89e1c20a3a684 (diff)
fixed #63
Diffstat (limited to 'src/eu/siacs/conversations/xmpp')
-rw-r--r--src/eu/siacs/conversations/xmpp/XmppConnection.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/xmpp/XmppConnection.java b/src/eu/siacs/conversations/xmpp/XmppConnection.java
index 41791dc2..adb27ec8 100644
--- a/src/eu/siacs/conversations/xmpp/XmppConnection.java
+++ b/src/eu/siacs/conversations/xmpp/XmppConnection.java
@@ -77,6 +77,8 @@ public class XmppConnection implements Runnable {
private Element streamFeatures;
private HashMap<String, List<String>> disco = new HashMap<String, List<String>>();
+ private HashSet<String> pendingSubscriptions = new HashSet<String>();
+
private String streamId = null;
private int smVersion = 3;
@@ -904,4 +906,13 @@ public class XmppConnection implements Runnable {
public String getMucServer() {
return findDiscoItemByFeature("http://jabber.org/protocol/muc");
}
+
+ public boolean hasPendingSubscription(String jid) {
+ return this.pendingSubscriptions.contains(jid);
+ }
+
+ public void addPendingSubscription(String jid) {
+ Log.d(LOGTAG,"adding "+jid+" to pending subscriptions");
+ this.pendingSubscriptions.add(jid);
+ }
}