From 00de4cd49ccfc311207cb8fe926ebc0c118d3e08 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Wed, 22 Feb 2017 20:08:58 +0100 Subject: bump mam namespace --- src/main/java/de/pixart/messenger/entities/MucOptions.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/main/java/de/pixart/messenger/entities') diff --git a/src/main/java/de/pixart/messenger/entities/MucOptions.java b/src/main/java/de/pixart/messenger/entities/MucOptions.java index 8ec3cbfd4..dc34d11a9 100644 --- a/src/main/java/de/pixart/messenger/entities/MucOptions.java +++ b/src/main/java/de/pixart/messenger/entities/MucOptions.java @@ -8,6 +8,7 @@ import java.util.List; import java.util.Set; import de.pixart.messenger.R; +import de.pixart.messenger.utils.Xmlns; import de.pixart.messenger.xmpp.forms.Data; import de.pixart.messenger.xmpp.forms.Field; import de.pixart.messenger.xmpp.jid.InvalidJidException; @@ -373,8 +374,11 @@ public class MucOptions { } public boolean mamSupport() { - // Update with "urn:xmpp:mam:1" once we support it - return hasFeature("urn:xmpp:mam:0"); + return hasFeature(Xmlns.MAM) || hasFeature(Xmlns.MAM_LAGECY); + } + + public boolean mamLegacy() { + return hasFeature(Xmlns.MAM_LAGECY) && !hasFeature(Xmlns.MAM); } public boolean nonanonymous() { -- cgit v1.2.3