From 02c2fea99e6ab93a99de8258f7cfa0f07944164b Mon Sep 17 00:00:00 2001 From: Valere Date: Mon, 12 Apr 2021 11:41:15 +0200 Subject: [PATCH] cleaning --- .../android/sdk/internal/session/room/summary/GrapUtils.kt | 2 +- .../sdk/internal/session/room/summary/RoomSummaryUpdater.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/GrapUtils.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/GrapUtils.kt index c1c40c1be1..b7e6548b54 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/GrapUtils.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/GrapUtils.kt @@ -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 { diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/RoomSummaryUpdater.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/RoomSummaryUpdater.kt index 72bac7c12b..25dd6a214e 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/RoomSummaryUpdater.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/summary/RoomSummaryUpdater.kt @@ -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 {