Dataforms of type result should include form field types

Description

If form fields do no mention type, they are by default assumed to be of type text-single.

This causes problem in cases where multiple form field values are included without mentioning type. (https://xmpp.org/extensions/xep-0157.html#example-2).

However, field standardisation for the same xep-0157 (https://xmpp.org/extensions/xep-0157.html#registrar-formtype) suggests that the form field type is list-multi. And so, it is better if the server adds type to the dataform as this saves the client from first checking `FORM_TYPE` and determine form field type as per standardisation .

Environment

Ubuntu 20.04

Activity

Show:
Fixed

Details

Assignee

Reporter

Expected Effort

Minimal

Components

Fix versions

Affects versions

Priority

Created July 18, 2020 at 10:24 AM
Updated July 21, 2020 at 7:58 AM
Resolved July 21, 2020 at 7:58 AM