diff --git a/vector/src/main/java/im/vector/app/features/poll/PollState.kt b/vector/src/main/java/im/vector/app/features/poll/PollState.kt index 3352c3ad05..93cdb0ecbe 100644 --- a/vector/src/main/java/im/vector/app/features/poll/PollState.kt +++ b/vector/src/main/java/im/vector/app/features/poll/PollState.kt @@ -16,12 +16,12 @@ package im.vector.app.features.poll -sealed class PollState { - object Sending : PollState() - object Ready : PollState() - data class Voted(val votes: Int) : PollState() - object Undisclosed : PollState() - object Ended : PollState() +sealed interface PollState { + object Sending : PollState + object Ready : PollState + data class Voted(val votes: Int) : PollState + object Undisclosed : PollState + object Ended : PollState fun isVotable() = this !is Sending && this !is Ended }