aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/thedevstack/conversationsplus/parser/AbstractParser.java
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2018-05-10 20:03:46 +0200
committersteckbrief <steckbrief@chefmail.de>2018-05-10 20:03:46 +0200
commitae30167461b89e7362d1ec5e77c14ec7640c537e (patch)
treedf7f90c591c92214bb2ee99bc06233e962344cb5 /src/main/java/de/thedevstack/conversationsplus/parser/AbstractParser.java
parent9d5197223924ca3b51afe016d1f68119d244a1b4 (diff)
moves delay element references to xmpp package
Diffstat (limited to 'src/main/java/de/thedevstack/conversationsplus/parser/AbstractParser.java')
-rw-r--r--src/main/java/de/thedevstack/conversationsplus/parser/AbstractParser.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/de/thedevstack/conversationsplus/parser/AbstractParser.java b/src/main/java/de/thedevstack/conversationsplus/parser/AbstractParser.java
index cb5c9d83..0358bddd 100644
--- a/src/main/java/de/thedevstack/conversationsplus/parser/AbstractParser.java
+++ b/src/main/java/de/thedevstack/conversationsplus/parser/AbstractParser.java
@@ -9,6 +9,7 @@ import de.thedevstack.conversationsplus.entities.Account;
import de.thedevstack.conversationsplus.entities.Contact;
import de.thedevstack.conversationsplus.services.XmppConnectionService;
import de.thedevstack.conversationsplus.xml.Element;
+import de.thedevstack.conversationsplus.xmpp.delay.Delay;
import de.thedevstack.conversationsplus.xmpp.jid.Jid;
import de.thedevstack.conversationsplus.xmpp.stanzas.AbstractStanza;
@@ -30,7 +31,7 @@ public abstract class AbstractParser {
* attribute the current time is returned.
*/
public static Long getTimestamp(Element element, Long defaultValue) {
- Element delay = element.findChild("delay","urn:xmpp:delay");
+ Element delay = element.findChild(Delay.DELAY);
if (delay != null) {
String stamp = delay.getAttribute("stamp");
if (stamp != null) {