aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-09-23 15:36:20 +0200
committeriNPUTmice <daniel@gultsch.de>2014-09-23 15:36:20 +0200
commit54278febb4798e649ec673b263f9ec86ee0cf79a (patch)
tree923735bcf1bc1974c05f5de1a941deb572044f6c
parent248a1693eabe5f8be0e564bd7395aec6b66fcf5d (diff)
changed method that determins whether or not sm is available
-rw-r--r--src/eu/siacs/conversations/xmpp/XmppConnection.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/eu/siacs/conversations/xmpp/XmppConnection.java b/src/eu/siacs/conversations/xmpp/XmppConnection.java
index 796920e2..8694e68c 100644
--- a/src/eu/siacs/conversations/xmpp/XmppConnection.java
+++ b/src/eu/siacs/conversations/xmpp/XmppConnection.java
@@ -974,11 +974,7 @@ public class XmppConnection implements Runnable {
}
public boolean sm() {
- if (connection.streamFeatures == null) {
- return false;
- } else {
- return connection.streamFeatures.hasChild("sm");
- }
+ return streamId != null;
}
public boolean csi() {