mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-15 10:48:54 +03:00
Fix crash on Android 6
Change-Id: Ie32c3dbc4b22afd673c5dcf581f8743f27d5bfc3
This commit is contained in:
parent
a90e1a15eb
commit
bea4cca2ab
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ internal class TimelineChunk(private val chunkEntity: ChunkEntity,
|
|||
for (range in modifications) {
|
||||
for (modificationIndex in (range.startIndex until range.startIndex + range.length)) {
|
||||
val updatedEntity = results[modificationIndex] ?: continue
|
||||
val displayIndex = builtEventsIndexes.getOrDefault(updatedEntity.eventId, null)
|
||||
val displayIndex = builtEventsIndexes[updatedEntity.eventId]
|
||||
if (displayIndex == null) {
|
||||
dimber.w{"TimelineChunk.handleDatabaseChangeSet.$dbgId: skip modification for ${updatedEntity.eventId} at $modificationIndex, not found in chunk"}
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue