mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +03:00
Set current ts for local events age
This commit is contained in:
parent
7415623c2f
commit
0dad4cb02a
1 changed files with 2 additions and 1 deletions
|
@ -156,7 +156,8 @@ internal class DefaultCreateLocalRoomTask @Inject constructor(
|
|||
continue
|
||||
}
|
||||
|
||||
val eventEntity = event.toEntity(roomId, SendState.SYNCED, null).copyToRealmOrIgnore(realm, EventInsertType.INCREMENTAL_SYNC)
|
||||
val now = clock.epochMillis()
|
||||
val eventEntity = event.toEntity(roomId, SendState.SYNCED, now).copyToRealmOrIgnore(realm, EventInsertType.INCREMENTAL_SYNC)
|
||||
if (event.stateKey != null) {
|
||||
CurrentStateEventEntity.getOrCreate(realm, roomId, event.stateKey, event.type).apply {
|
||||
eventId = event.eventId
|
||||
|
|
Loading…
Reference in a new issue