This commit is contained in:
David Langley 2022-02-10 19:20:40 +00:00
parent cb37bc56a6
commit 8e492cf98d
3 changed files with 1 additions and 9 deletions

View File

@ -56,7 +56,6 @@ import im.vector.app.features.call.dialpad.CallDialPadBottomSheet
import im.vector.app.features.call.dialpad.DialPadFragment
import im.vector.app.features.call.transfer.CallTransferActivity
import im.vector.app.features.call.transfer.CallTransferResult
import im.vector.app.features.call.transfer.CallTransferViewEvents
import im.vector.app.features.call.utils.EglUtils
import im.vector.app.features.call.webrtc.WebRtcCall
import im.vector.app.features.call.webrtc.WebRtcCallManager
@ -534,7 +533,7 @@ class VectorCallActivity : VectorBaseActivity<ActivityCallBinding>(), CallContro
private val callTransferActivityResultLauncher = registerStartForActivityResult { activityResult ->
when(activityResult.resultCode) {
when (activityResult.resultCode) {
Activity.RESULT_CANCELED -> {
callViewModel.handle(VectorCallViewActions.CallTransferSelectionCancelled)
}

View File

@ -19,7 +19,6 @@ package im.vector.app.features.call.transfer
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
sealed class CallTransferResult : Parcelable{
@Parcelize data class ConnectWithUserId(val consultFirst: Boolean, val selectedUserId: String) : CallTransferResult()
@Parcelize data class ConnectWithPhoneNumber(val consultFirst: Boolean, val phoneNumber: String) : CallTransferResult()

View File

@ -22,15 +22,10 @@ import dagger.assisted.AssistedFactory
import dagger.assisted.AssistedInject
import im.vector.app.core.di.MavericksAssistedViewModelFactory
import im.vector.app.core.di.hiltMavericksViewModelFactory
import im.vector.app.core.extensions.exhaustive
import im.vector.app.core.platform.EmptyAction
import im.vector.app.core.platform.VectorViewModel
import im.vector.app.features.call.dialpad.DialPadLookup
import im.vector.app.features.call.webrtc.WebRtcCall
import im.vector.app.features.call.webrtc.WebRtcCallManager
import im.vector.app.features.createdirect.DirectRoomHelper
import kotlinx.coroutines.launch
import org.matrix.android.sdk.api.extensions.orFalse
import org.matrix.android.sdk.api.session.call.CallState
import org.matrix.android.sdk.api.session.call.MxCall
@ -68,5 +63,4 @@ class CallTransferViewModel @AssistedInject constructor(@Assisted initialState:
}
override fun handle(action: EmptyAction) { }
}