1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-12-09 14:41:08 +01:00

Fix EnablePushNotificationsIQ wrong form type

Should be submit instead of form
Fixes SMACK-752
This commit is contained in:
andri.khrisharyadi 2017-04-03 18:59:14 +07:00
parent 8a8c01a4e5
commit c8b4df4f84
2 changed files with 2 additions and 2 deletions

View file

@ -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");