Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
xep_0004 doesn’t allow a field of type="hidden" in Form.add_field #246
Adding a field of type="hidden" is impossible if the form is not of type "form" or "result".
But we need to do so with the forms we return in e.g. XEP-0133.
Of course, we can bypass that with field['type'] = 'hidden' after the form.add_field, but I think it would be better to remove the
else: del field['type']
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
@legastero does removing the else as mentioned seem ok?