mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
Add comments
This commit is contained in:
parent
c57236da30
commit
63329499ac
2 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,9 @@ import org.matrix.android.sdk.api.util.ContentUtils.extractUsefulTextFromReply
|
||||||
*/
|
*/
|
||||||
data class TimelineEvent(
|
data class TimelineEvent(
|
||||||
val root: Event,
|
val root: Event,
|
||||||
|
/**
|
||||||
|
* Uniquely identify an event, computed locally by the sdk
|
||||||
|
*/
|
||||||
val localId: Long,
|
val localId: Long,
|
||||||
val eventId: String,
|
val eventId: String,
|
||||||
val displayIndex: Int,
|
val displayIndex: Int,
|
||||||
|
|
|
@ -427,6 +427,7 @@ class TimelineEventController @Inject constructor(private val dateFormatter: Vec
|
||||||
val formattedDayModel: DaySeparatorItem? = null
|
val formattedDayModel: DaySeparatorItem? = null
|
||||||
) {
|
) {
|
||||||
fun shouldTriggerBuild(): Boolean {
|
fun shouldTriggerBuild(): Boolean {
|
||||||
|
// Since those items can change when we paginate, force a re-build
|
||||||
return mergedHeaderModel != null || formattedDayModel != null
|
return mergedHeaderModel != null || formattedDayModel != null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue