mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-29 09:42:06 +01:00
Fix EnablePushNotificationsIQ wrong form type
Should be submit instead of form Fixes SMACK-752
This commit is contained in:
parent
8a8c01a4e5
commit
c8b4df4f84
2 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ public class EnablePushNotificationsIQ extends IQ {
|
|||
xml.rightAngleBracket();
|
||||
|
||||
if (publishOptions != null) {
|
||||
DataForm dataForm = new DataForm(DataForm.Type.form);
|
||||
DataForm dataForm = new DataForm(DataForm.Type.submit);
|
||||
|
||||
FormField formTypeField = new FormField("FORM_TYPE");
|
||||
formTypeField.addValue(PubSub.NAMESPACE + "#publish-options");
|
||||
|
|
|
@ -31,7 +31,7 @@ public class EnablePushNotificationsIQTest {
|
|||
|
||||
String exampleEnableIQWithPublishOptions = "<iq id='x42' type='set'>"
|
||||
+ "<enable xmlns='urn:xmpp:push:0' jid='push-5.client.example' node='yxs32uqsflafdk3iuqo'>"
|
||||
+ "<x xmlns='jabber:x:data' type='form'>"
|
||||
+ "<x xmlns='jabber:x:data' type='submit'>"
|
||||
+ "<field var='FORM_TYPE'><value>http://jabber.org/protocol/pubsub#publish-options</value></field>"
|
||||
+ "<field var='secret'><value>eruio234vzxc2kla-91</value></field>" + "</x>" + "</enable>" + "</iq>";
|
||||
|
||||
|
|
Loading…
Reference in a new issue