IDEMSInternational / rapidpro-flow-toolkit

Toolkit for using spreadsheets to create and modify RapidPro flows
GNU Lesser General Public License v2.1
3 stars 1 forks source link

Feature: clear contact language #109

Open fagiothree opened 10 months ago

fagiothree commented 10 months ago

At the moment in the set_contact_language operation, there is a check for the language to be non-empty: _language must be non-empty for set_contactlanguage

However, from the RapidPro interface it's possible to clear the language variable. The action in the rapidpro json doesn't have have language key, i.e. { "uuid": "6523f537-a046-4d36-b595-a0067fa2e5c9", "type": "set_contact_language" }

instead of

{ "uuid": "4fc2803f-04ad-4bc2-80a8-d1c3d896412f", "type": "set_contact_language", "language": "eng" }

Should we also allow for it, but maybe give a warning?