diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-09-18 23:21:05 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-09-23 21:55:03 +0200 |
commit | 029756947294e3d81e272659cf0bf84915db2bde (patch) | |
tree | cb1de4f8e92d2fe167823bc2fecb3c289fef2cd4 /src/main/java/de/pixart/messenger/xmpp/XmppConnection.java | |
parent | cccd15e4dc1ba769727fdfeb3359c2307f3e8ac6 (diff) |
add support for XEP-0377: Spam Reporting
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/xmpp/XmppConnection.java | 4 |
1 files changed, 4 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 8f1948b50..41fab523d 100644 --- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java +++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java @@ -1613,6 +1613,10 @@ public class XmppConnection implements Runnable { return hasDiscoFeature(account.getServer(), Xmlns.BLOCKING); } + public boolean spamReporting() { + return hasDiscoFeature(account.getServer(), "urn:xmpp:reporting:reason:spam:0"); + } + public boolean register() { return hasDiscoFeature(account.getServer(), Xmlns.REGISTER); } |