aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-07-09 20:57:21 +0200
committerChristian Schneppe <christian@pix-art.de>2018-07-09 20:57:21 +0200
commitab45078377b625f699aa806e22832fda75dfd131 (patch)
tree09f60a0ed6d4fb9140822f4e0ae0f5cd499e1e07 /src/main/java/de
parentc489fe3292e75d0a85d65d57dde24ae7a81e9147 (diff)
improve identification of muc service
Diffstat (limited to 'src/main/java/de')
-rw-r--r--src/main/java/de/pixart/messenger/xmpp/XmppConnection.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
index a279308e0..d8fdb540a 100644
--- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
+++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
@@ -1574,6 +1574,7 @@ public class XmppConnection implements Runnable {
for (final Entry<Jid, ServiceDiscoveryResult> cursor : disco.entrySet()) {
final ServiceDiscoveryResult value = cursor.getValue();
if (value.getFeatures().contains("http://jabber.org/protocol/muc")
+ && value.hasIdentity("conference", "text")
&& !value.getFeatures().contains("jabber:iq:gateway")
&& !value.hasIdentity("conference", "irc")) {
servers.add(cursor.getKey().toString());