This commit is contained in:
Valere 2021-04-12 11:41:15 +02:00
parent 886cc7fb5b
commit 02c2fea99e
2 changed files with 2 additions and 2 deletions

View file

@ -92,7 +92,7 @@ class Graph {
while (stack.isNotEmpty()) {
// Timber.w("VAL: current stack: ${stack.reversed().joinToString { it.name }}")
val vertex = stack.peek()
val vertex = stack.peek() ?: break
// peek a path to follow
var destination: GraphNode? = null
edgesOf(vertex).forEach {

View file

@ -304,7 +304,7 @@ internal class RoomSummaryUpdater @Inject constructor(
entry.value.forEach { child ->
RoomSummaryEntity.where(realm, child.roomId).findFirst()?.let { childSum ->
Timber.w("## SPACES: ${childSum.name} is ${childSum.roomId} fc: ${childSum.flattenParentIds}")
// Timber.w("## SPACES: ${childSum.name} is ${childSum.roomId} fc: ${childSum.flattenParentIds}")
// var allParents = childSum.flattenParentIds ?: ""
if (childSum.flattenParentIds == null) childSum.flattenParentIds = ""
flattenParentsIds.forEach {