File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
appnav/src/main/kotlin/io/element/android/appnav/room
libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ import com.bumble.appyx.core.node.node
3232import com.bumble.appyx.core.plugin.Plugin
3333import com.bumble.appyx.core.plugin.plugins
3434import com.bumble.appyx.navmodel.backstack.BackStack
35+ import com.bumble.appyx.navmodel.backstack.operation.newRoot
3536import dagger.assisted.Assisted
3637import dagger.assisted.AssistedInject
3738import io.element.android.anvilannotations.ContributesNode
3839import io.element.android.appnav.NodeLifecycleCallback
39- import io.element.android.appnav.safeRoot
4040import io.element.android.features.networkmonitor.api.NetworkMonitor
4141import io.element.android.features.networkmonitor.api.NetworkStatus
4242import io.element.android.libraries.architecture.BackstackNode
@@ -92,9 +92,9 @@ class RoomFlowNode @AssistedInject constructor(
9292 .distinctUntilChanged()
9393 .onEach { isLoaded ->
9494 if (isLoaded) {
95- backstack.safeRoot (NavTarget .Loaded )
95+ backstack.newRoot (NavTarget .Loaded )
9696 } else {
97- backstack.safeRoot (NavTarget .Loading )
97+ backstack.newRoot (NavTarget .Loading )
9898 }
9999 }.launchIn(lifecycleScope)
100100 }
Original file line number Diff line number Diff line change @@ -165,8 +165,10 @@ class RustMatrixClient constructor(
165165 val cachedRoomListItem = roomListService.roomOrNull(roomId.value)
166166 val fullRoom = cachedRoomListItem?.fullRoom()
167167 if (cachedRoomListItem == null || fullRoom == null ) {
168+ Timber .d(" No room cached for $roomId " )
168169 null
169170 } else {
171+ Timber .d(" Found room cached for $roomId " )
170172 Pair (cachedRoomListItem, fullRoom)
171173 }
172174 }
You can’t perform that action at this time.
0 commit comments