ktlint
This commit is contained in:
parent
225e4e0433
commit
ccd857016c
|
@ -50,7 +50,6 @@ internal class VerificationTransportToDevice(
|
|||
roomId: String?,
|
||||
toDevices: List<String>?,
|
||||
callback: (String?, VerificationInfoRequest?) -> Unit) {
|
||||
|
||||
val contentMap = MXUsersDevicesMap<Any>()
|
||||
val keyReq = KeyVerificationRequest(
|
||||
fromDevice = myDeviceId,
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -168,7 +168,6 @@ class HomeActivity : VectorBaseActivity(), ToolbarConfigurable {
|
|||
addButton(
|
||||
getString(R.string.later),
|
||||
Runnable {
|
||||
|
||||
}
|
||||
)
|
||||
addButton(
|
||||
|
|
Loading…
Reference in New Issue