Trim polls text.

This commit is contained in:
Michelle Tang
2025-11-17 10:09:56 -05:00
parent 912489d1c8
commit 88b0e716e6

View File

@@ -288,7 +288,7 @@ private fun CreatePollScreen(
),
onClick = {
if (isEnabled) {
onSend(question, allowMultiple, options.filter { it.isNotBlank() })
onSend(question.trim(), allowMultiple, options.filter { it.isNotBlank() }.map { it.trim() })
} else {
onShowErrorSnackbar(question.isNotBlank(), hasMinimumOptions)
}