Add comments

This commit is contained in:
Benoit Marty 2021-03-08 16:03:48 +01:00 committed by Benoit Marty
parent c57236da30
commit 63329499ac
2 changed files with 4 additions and 0 deletions

View file

@ -38,6 +38,9 @@ import org.matrix.android.sdk.api.util.ContentUtils.extractUsefulTextFromReply
*/
data class TimelineEvent(
val root: Event,
/**
* Uniquely identify an event, computed locally by the sdk
*/
val localId: Long,
val eventId: String,
val displayIndex: Int,

View file

@ -427,6 +427,7 @@ class TimelineEventController @Inject constructor(private val dateFormatter: Vec
val formattedDayModel: DaySeparatorItem? = null
) {
fun shouldTriggerBuild(): Boolean {
// Since those items can change when we paginate, force a re-build
return mergedHeaderModel != null || formattedDayModel != null
}
}