aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/entities
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-02-22 20:08:58 +0100
committerChristian Schneppe <christian@pix-art.de>2017-02-22 20:49:04 +0100
commit00de4cd49ccfc311207cb8fe926ebc0c118d3e08 (patch)
tree130d49c0efddc98d48532e39489ea50a27ad9425 /src/main/java/de/pixart/messenger/entities
parent72ce4b07c1bd53b1842f213925c9c1f6d5a99003 (diff)
bump mam namespace
Diffstat (limited to 'src/main/java/de/pixart/messenger/entities')
-rw-r--r--src/main/java/de/pixart/messenger/entities/MucOptions.java8
1 files changed, 6 insertions, 2 deletions
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() {