diff options
Diffstat (limited to 'src/eu/siacs/conversations/xmpp/stanzas/streammgmt/EnablePacket.java')
-rw-r--r-- | src/eu/siacs/conversations/xmpp/stanzas/streammgmt/EnablePacket.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/eu/siacs/conversations/xmpp/stanzas/streammgmt/EnablePacket.java b/src/eu/siacs/conversations/xmpp/stanzas/streammgmt/EnablePacket.java index f6a0adb2d..0ca7a4fd1 100644 --- a/src/eu/siacs/conversations/xmpp/stanzas/streammgmt/EnablePacket.java +++ b/src/eu/siacs/conversations/xmpp/stanzas/streammgmt/EnablePacket.java @@ -4,15 +4,9 @@ import eu.siacs.conversations.xmpp.stanzas.AbstractStanza; public class EnablePacket extends AbstractStanza { - public EnablePacket() { + public EnablePacket(int smVersion) { super("enable"); - this.setAttribute("xmlns","urn:xmpp:sm:3"); - this.setAttribute("resume", "true"); - } - - public EnablePacket(String xmlns) { - super("enable"); - this.setAttribute("xmlns",xmlns); + this.setAttribute("xmlns","urn:xmpp:sm:"+smVersion); this.setAttribute("resume", "true"); } |