diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-04-05 12:08:35 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-04-05 12:08:35 +0200 |
commit | 486f198632a81fb9c3e1a41bcc0a68fa86888fa8 (patch) | |
tree | dc77ec412c62a7ece04f0bdb69a68f7d1563d288 /src/eu/siacs/conversations/xmpp/stanzas/streammgmt/EnablePacket.java | |
parent | 83a23ad3b1d06155e5861c07762ad51163fda318 (diff) |
use proper, advertised sm namespace
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 f6a0adb2..0ca7a4fd 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"); } |