mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-09 08:38:43 +01:00
Merge pull request #4703 from vector-im/feature/bma/fix_poll_create
Use only non empty option to create a poll
This commit is contained in:
commit
240d0c0a5e
@ -81,7 +81,7 @@ class CreatePollViewModel @AssistedInject constructor(
|
||||
_viewEvents.post(CreatePollViewEvents.NotEnoughOptionsError(requiredOptionsCount = MIN_OPTIONS_COUNT))
|
||||
}
|
||||
else -> {
|
||||
room.sendPoll(state.question, state.options)
|
||||
room.sendPoll(state.question, nonEmptyOptions)
|
||||
_viewEvents.post(CreatePollViewEvents.Success)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user