Timeline: clear unlinked should use new parameters
This commit is contained in:
parent
38c198fe02
commit
03c3c9ae57
|
@ -38,7 +38,7 @@ internal class DefaultClearUnlinkedEventsTask @Inject constructor(private val mo
|
||||||
monarchy.awaitTransaction { localRealm ->
|
monarchy.awaitTransaction { localRealm ->
|
||||||
val unlinkedChunks = ChunkEntity
|
val unlinkedChunks = ChunkEntity
|
||||||
.where(localRealm, roomId = params.roomId)
|
.where(localRealm, roomId = params.roomId)
|
||||||
.equalTo("${ChunkEntityFields.TIMELINE_EVENTS.ROOT}.${EventEntityFields.IS_UNLINKED}", true)
|
.equalTo(ChunkEntityFields.IS_UNLINKED, true)
|
||||||
.findAll()
|
.findAll()
|
||||||
unlinkedChunks.forEach {
|
unlinkedChunks.forEach {
|
||||||
it.deleteOnCascade()
|
it.deleteOnCascade()
|
||||||
|
|
Loading…
Reference in New Issue