diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/verification/VerificationTransportToDevice.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/verification/VerificationTransportToDevice.kt index 219fe1eec2..f52035018f 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/verification/VerificationTransportToDevice.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/verification/VerificationTransportToDevice.kt @@ -50,7 +50,6 @@ internal class VerificationTransportToDevice( roomId: String?, toDevices: List?, callback: (String?, VerificationInfoRequest?) -> Unit) { - val contentMap = MXUsersDevicesMap() val keyReq = KeyVerificationRequest( fromDevice = myDeviceId, diff --git a/vector/src/main/java/im/vector/riotx/features/crypto/verification/VerificationBottomSheetViewModel.kt b/vector/src/main/java/im/vector/riotx/features/crypto/verification/VerificationBottomSheetViewModel.kt index e841f942ee..55394d6251 100644 --- a/vector/src/main/java/im/vector/riotx/features/crypto/verification/VerificationBottomSheetViewModel.kt +++ b/vector/src/main/java/im/vector/riotx/features/crypto/verification/VerificationBottomSheetViewModel.kt @@ -248,7 +248,6 @@ class VerificationBottomSheetViewModel @AssistedInject constructor(@Assisted ini if (state.waitForOtherUserMode && state.transactionId == null) { // is this an incoming with that user if (tx.isIncoming && tx.otherUserId == state.otherUserMxItem?.id) { - // Also auto accept incoming if needed! if (tx is IncomingSasVerificationTransaction) { if (tx.uxState == IncomingSasVerificationTransaction.UxState.SHOW_ACCEPT) { diff --git a/vector/src/main/java/im/vector/riotx/features/crypto/verification/conclusion/VerificationConclusionController.kt b/vector/src/main/java/im/vector/riotx/features/crypto/verification/conclusion/VerificationConclusionController.kt index e91c883543..9719651bd4 100644 --- a/vector/src/main/java/im/vector/riotx/features/crypto/verification/conclusion/VerificationConclusionController.kt +++ b/vector/src/main/java/im/vector/riotx/features/crypto/verification/conclusion/VerificationConclusionController.kt @@ -52,7 +52,6 @@ class VerificationConclusionController @Inject constructor( notice(stringProvider.getString( if (state.isSelfVerification) R.string.verification_conclusion_ok_self_notice else R.string.verification_conclusion_ok_notice)) - } bottomSheetVerificationBigImageItem { diff --git a/vector/src/main/java/im/vector/riotx/features/crypto/verification/conclusion/VerificationConclusionViewModel.kt b/vector/src/main/java/im/vector/riotx/features/crypto/verification/conclusion/VerificationConclusionViewModel.kt index 21d782dc16..bdeb9e01dd 100644 --- a/vector/src/main/java/im/vector/riotx/features/crypto/verification/conclusion/VerificationConclusionViewModel.kt +++ b/vector/src/main/java/im/vector/riotx/features/crypto/verification/conclusion/VerificationConclusionViewModel.kt @@ -53,9 +53,9 @@ class VerificationConclusionViewModel(initialState: VerificationConclusionViewSt } else -> { VerificationConclusionViewState( - if (args.isSuccessFull) ConclusionState.SUCCESS - else ConclusionState.CANCELLED - , args.isMe) + if (args.isSuccessFull) ConclusionState.SUCCESS else ConclusionState.CANCELLED, + args.isMe + ) } } } diff --git a/vector/src/main/java/im/vector/riotx/features/crypto/verification/request/VerificationRequestController.kt b/vector/src/main/java/im/vector/riotx/features/crypto/verification/request/VerificationRequestController.kt index 22351bad77..9c4a5a870f 100644 --- a/vector/src/main/java/im/vector/riotx/features/crypto/verification/request/VerificationRequestController.kt +++ b/vector/src/main/java/im/vector/riotx/features/crypto/verification/request/VerificationRequestController.kt @@ -50,8 +50,6 @@ class VerificationRequestController @Inject constructor( val state = viewState ?: return val matrixItem = viewState?.otherUserMxItem ?: return - - if (state.waitForOtherUserMode) { bottomSheetVerificationNoticeItem { id("notice") @@ -62,13 +60,11 @@ class VerificationRequestController @Inject constructor( id("sep") } - bottomSheetVerificationWaitingItem { id("waiting") title(stringProvider.getString(R.string.verification_request_waiting_for, matrixItem.getBestName())) } } else { - val styledText = matrixItem.let { stringProvider.getString(R.string.verification_request_notice, it.id) .toSpannable() diff --git a/vector/src/main/java/im/vector/riotx/features/home/HomeActivity.kt b/vector/src/main/java/im/vector/riotx/features/home/HomeActivity.kt index 9d9f886e17..94e14ab214 100644 --- a/vector/src/main/java/im/vector/riotx/features/home/HomeActivity.kt +++ b/vector/src/main/java/im/vector/riotx/features/home/HomeActivity.kt @@ -168,7 +168,6 @@ class HomeActivity : VectorBaseActivity(), ToolbarConfigurable { addButton( getString(R.string.later), Runnable { - } ) addButton(