shareActionState is a property, no need to provide it as parameter.
This commit is contained in:
parent
ffff1c904f
commit
abaac1c5ca
1 changed files with 1 additions and 2 deletions
|
|
@ -49,7 +49,7 @@ class SharePresenter @AssistedInject constructor(
|
||||||
private val shareActionState: MutableState<AsyncAction<List<RoomId>>> = mutableStateOf(AsyncAction.Uninitialized)
|
private val shareActionState: MutableState<AsyncAction<List<RoomId>>> = mutableStateOf(AsyncAction.Uninitialized)
|
||||||
|
|
||||||
fun onRoomSelected(roomIds: List<RoomId>) {
|
fun onRoomSelected(roomIds: List<RoomId>) {
|
||||||
appCoroutineScope.share(intent, roomIds, shareActionState)
|
appCoroutineScope.share(intent, roomIds)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
|
@ -69,7 +69,6 @@ class SharePresenter @AssistedInject constructor(
|
||||||
private fun CoroutineScope.share(
|
private fun CoroutineScope.share(
|
||||||
intent: Intent,
|
intent: Intent,
|
||||||
roomIds: List<RoomId>,
|
roomIds: List<RoomId>,
|
||||||
shareActionState: MutableState<AsyncAction<List<RoomId>>>,
|
|
||||||
) = launch {
|
) = launch {
|
||||||
suspend {
|
suspend {
|
||||||
val result = shareIntentHandler.handleIncomingShareIntent(
|
val result = shareIntentHandler.handleIncomingShareIntent(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue