Fixes crash due to empty constructor in CreatePollViewState

This commit is contained in:
ericdecanini 2022-03-17 13:46:16 +01:00
parent 9c8f29e853
commit d11fc060ee

View file

@ -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
)
}