mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-17 04:20:00 +03:00
Fixes crash due to empty constructor in CreatePollViewState
This commit is contained in:
parent
9c8f29e853
commit
d11fc060ee
1 changed files with 8 additions and 1 deletions
|
@ -29,4 +29,11 @@ data class CreatePollViewState(
|
|||
val canCreatePoll: Boolean = false,
|
||||
val canAddMoreOptions: Boolean = true,
|
||||
val pollType: PollType = PollType.DISCLOSED_UNSTABLE
|
||||
) : MavericksState
|
||||
) : MavericksState {
|
||||
|
||||
constructor(args: CreatePollArgs) : this(
|
||||
roomId = args.roomId,
|
||||
editedEventId = args.editedEventId,
|
||||
mode = args.mode
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue