diff options
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/xmpp/XmppConnection.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java index 9cb852ea9..0e05a2775 100644 --- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java +++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java @@ -1659,8 +1659,13 @@ public class XmppConnection implements Runnable { } public boolean mam() { - return hasDiscoFeature(account.getJid().toBareJid(), "urn:xmpp:mam:0") - || hasDiscoFeature(account.getServer(), "urn:xmpp:mam:0"); + return hasDiscoFeature(account.getJid().toBareJid(), Xmlns.MAM) + || hasDiscoFeature(account.getJid().toBareJid(), Xmlns.MAM_LAGECY); + } + + public boolean mamLegacy() { + return !hasDiscoFeature(account.getJid().toBareJid(), Xmlns.MAM) + && hasDiscoFeature(account.getJid().toBareJid(), Xmlns.MAM_LAGECY); } public boolean push() { |