mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 01:45:52 +03:00
Use only non empty option to create a poll
This commit is contained in:
parent
5ea7f3cbca
commit
28588eb10c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue