Skip to content

Commit b1cb24a

Browse files
committed
Use Node scope instead of UI scope.
1 parent 6036a3c commit b1cb24a

File tree

1 file changed

+2
-3
lines changed
  • features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl

1 file changed

+2
-3
lines changed

features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl/RoomDetailsNode.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ package io.element.android.features.roomdetails.impl
1818

1919
import android.content.Context
2020
import androidx.compose.runtime.Composable
21-
import androidx.compose.runtime.rememberCoroutineScope
2221
import androidx.compose.ui.Modifier
2322
import androidx.compose.ui.platform.LocalContext
23+
import androidx.lifecycle.lifecycleScope
2424
import com.bumble.appyx.core.lifecycle.subscribe
2525
import com.bumble.appyx.core.modality.BuildContext
2626
import com.bumble.appyx.core.node.Node
@@ -130,10 +130,9 @@ class RoomDetailsNode @AssistedInject constructor(
130130
override fun View(modifier: Modifier) {
131131
val context = LocalContext.current
132132
val state = presenter.present()
133-
val coroutineScope = rememberCoroutineScope()
134133

135134
fun onShareRoom() {
136-
coroutineScope.onShareRoom(context)
135+
lifecycleScope.onShareRoom(context)
137136
}
138137

139138
fun onShareMember(roomMember: RoomMember) {

0 commit comments

Comments
 (0)