mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-27 09:31:20 +01:00
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…
x
Reference in New Issue
Block a user