From e29ce19f202e535f44098f280650ad892c943e52 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 16 Apr 2014 19:48:04 +0200 Subject: fixed #63 --- src/eu/siacs/conversations/xmpp/XmppConnection.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/eu/siacs/conversations/xmpp') diff --git a/src/eu/siacs/conversations/xmpp/XmppConnection.java b/src/eu/siacs/conversations/xmpp/XmppConnection.java index 41791dc20..adb27ec8c 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> disco = new HashMap>(); + private HashSet pendingSubscriptions = new HashSet(); + 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); + } } -- cgit v1.2.3