mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Trim polls text.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user