Removes event timestamp condition for sdk poll voting
This commit is contained in:
parent
e4ce4ab1ab
commit
080844dc9d
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue