From df6ae4b8482975f185458d9af8c264f35c1ae925 Mon Sep 17 00:00:00 2001 From: ericdecanini Date: Thu, 10 Mar 2022 18:26:49 +0100 Subject: [PATCH] Fixes warning for debugging --- .../app/features/home/room/detail/timeline/item/PollItem.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/PollItem.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/PollItem.kt index 295f4c930b..5727c8583d 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/PollItem.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/PollItem.kt @@ -85,7 +85,7 @@ abstract class PollItem : AbsMessageItem() { } } - private fun isPollActive(optionViewState: PollOptionViewState) = true // TODO: Revert (true for debugging) + private fun isPollActive(optionViewState: PollOptionViewState) = optionViewState.let { true } // TODO: Revert (true for debugging) // private fun isPollActive(optionViewState: PollOptionViewState) = optionViewState !is PollOptionViewState.PollEnded class Holder : AbsMessageItem.Holder(STUB_ID) {