Removes event timestamp condition for sdk poll voting

This commit is contained in:
ericdecanini 2022-03-10 16:28:22 +01:00
parent e4ce4ab1ab
commit 080844dc9d
2 changed files with 3 additions and 2 deletions

View File

@ -385,7 +385,7 @@ internal class EventRelationsAggregationProcessor @Inject constructor(
} }
val closedTime = existingPollSummary?.closedTime val closedTime = existingPollSummary?.closedTime
if (closedTime != null && eventTimestamp > closedTime) { if (closedTime != null) {
Timber.v("## POLL is closed ignore event poll:$targetEventId, event :${event.eventId}") Timber.v("## POLL is closed ignore event poll:$targetEventId, event :${event.eventId}")
return return
} }

View File

@ -85,7 +85,8 @@ abstract class PollItem : AbsMessageItem<PollItem.Holder>() {
} }
} }
private fun isPollActive(optionViewState: PollOptionViewState) = optionViewState !is PollOptionViewState.PollEnded private fun isPollActive(optionViewState: PollOptionViewState) = true // TODO: Revert (true for debugging)
// private fun isPollActive(optionViewState: PollOptionViewState) = optionViewState !is PollOptionViewState.PollEnded
class Holder : AbsMessageItem.Holder(STUB_ID) { class Holder : AbsMessageItem.Holder(STUB_ID) {
val questionTextView by bind<TextView>(R.id.questionTextView) val questionTextView by bind<TextView>(R.id.questionTextView)