Replace thread timeline and thread summaries EventInsertType from INCREMENTAL_SYNC to PAGINATION

This commit is contained in:
ariskotsomitopoulos 2022-03-08 10:13:56 +02:00
parent d19dd91d67
commit 557fd7eacf
2 changed files with 2 additions and 2 deletions

View File

@ -260,7 +260,7 @@ private fun HashMap<String, RoomMemberContent?>.addSenderState(realm: Realm, roo
*/
private fun createEventEntity(roomId: String, event: Event, realm: Realm): EventEntity {
val ageLocalTs = event.unsignedData?.age?.let { System.currentTimeMillis() - it }
return event.toEntity(roomId, SendState.SYNCED, ageLocalTs).copyToRealmOrIgnore(realm, EventInsertType.INCREMENTAL_SYNC)
return event.toEntity(roomId, SendState.SYNCED, ageLocalTs).copyToRealmOrIgnore(realm, EventInsertType.PAGINATION)
}
/**

View File

@ -212,7 +212,7 @@ internal class DefaultFetchThreadTimelineTask @Inject constructor(
*/
private fun createEventEntity(roomId: String, event: Event, realm: Realm): EventEntity {
val ageLocalTs = event.unsignedData?.age?.let { System.currentTimeMillis() - it }
return event.toEntity(roomId, SendState.SYNCED, ageLocalTs).copyToRealmOrIgnore(realm, EventInsertType.INCREMENTAL_SYNC)
return event.toEntity(roomId, SendState.SYNCED, ageLocalTs).copyToRealmOrIgnore(realm, EventInsertType.PAGINATION)
}
/**