File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
features/roomdetails/impl/src/main/kotlin/io/element/android/features/roomdetails/impl Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ package io.element.android.features.roomdetails.impl
1818
1919import android.content.Context
2020import androidx.compose.runtime.Composable
21- import androidx.compose.runtime.rememberCoroutineScope
2221import androidx.compose.ui.Modifier
2322import androidx.compose.ui.platform.LocalContext
23+ import androidx.lifecycle.lifecycleScope
2424import com.bumble.appyx.core.lifecycle.subscribe
2525import com.bumble.appyx.core.modality.BuildContext
2626import 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 ) {
You can’t perform that action at this time.
0 commit comments