From 24d9c10f9714cbd1c4cfaf5ae645b5bf2843fd8f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 6 Jun 2024 10:02:35 +0200 Subject: [PATCH] shareActionState is a property, no need to provide it as parameter. --- .../io/element/android/features/share/impl/SharePresenter.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/features/share/impl/src/main/kotlin/io/element/android/features/share/impl/SharePresenter.kt b/features/share/impl/src/main/kotlin/io/element/android/features/share/impl/SharePresenter.kt index 07668a6628..c0ebb4ee16 100644 --- a/features/share/impl/src/main/kotlin/io/element/android/features/share/impl/SharePresenter.kt +++ b/features/share/impl/src/main/kotlin/io/element/android/features/share/impl/SharePresenter.kt @@ -49,7 +49,7 @@ class SharePresenter @AssistedInject constructor( private val shareActionState: MutableState>> = mutableStateOf(AsyncAction.Uninitialized) fun onRoomSelected(roomIds: List) { - appCoroutineScope.share(intent, roomIds, shareActionState) + appCoroutineScope.share(intent, roomIds) } @Composable @@ -69,7 +69,6 @@ class SharePresenter @AssistedInject constructor( private fun CoroutineScope.share( intent: Intent, roomIds: List, - shareActionState: MutableState>>, ) = launch { suspend { val result = shareIntentHandler.handleIncomingShareIntent(