Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: clear contact language #109

Open
fagiothree opened this issue Nov 6, 2023 · 0 comments
Open

Feature: clear contact language #109

fagiothree opened this issue Nov 6, 2023 · 0 comments

Comments

@fagiothree
Copy link
Member

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_contact_language

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant