Add comments
This commit is contained in:
parent
c57236da30
commit
63329499ac
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue