diff options
author | steckbrief <steckbrief@chefmail.de> | 2018-05-10 20:03:46 +0200 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2018-05-10 20:03:46 +0200 |
commit | ae30167461b89e7362d1ec5e77c14ec7640c537e (patch) | |
tree | df7f90c591c92214bb2ee99bc06233e962344cb5 /src/main/java/de/thedevstack/conversationsplus/parser | |
parent | 9d5197223924ca3b51afe016d1f68119d244a1b4 (diff) |
moves delay element references to xmpp package
Diffstat (limited to 'src/main/java/de/thedevstack/conversationsplus/parser')
-rw-r--r-- | src/main/java/de/thedevstack/conversationsplus/parser/AbstractParser.java | 3 |
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) { |