cleaning klint

This commit is contained in:
Valere 2020-02-26 14:03:33 +01:00
parent 5e0235e48d
commit 8ff31ac49d
6 changed files with 3 additions and 9 deletions

View File

@ -758,7 +758,7 @@ internal class DefaultCrossSigningService @Inject constructor(
private fun reRequestAllPendingRoomKeyRequest() {
Timber.d("## CrossSigning - reRequest pending outgoing room key requests")
cryptoStore.getOutgoingRoomKeyRequests().forEach {
it.requestBody?.let {requestBody ->
it.requestBody?.let { requestBody ->
if (cryptoStore.getInboundGroupSession(requestBody.sessionId ?: "", requestBody.senderKey ?: "") == null) {
outgoingRoomKeyRequestManager.resendRoomKeyRequest(requestBody)
} else {
@ -767,5 +767,4 @@ internal class DefaultCrossSigningService @Inject constructor(
}
}
}
}

View File

@ -1025,7 +1025,7 @@ internal class RealmCryptoStore @Inject constructor(
}
override fun getOutgoingRoomKeyRequests(): List<OutgoingRoomKeyRequest> {
return monarchy.fetchAllMappedSync( { realm ->
return monarchy.fetchAllMappedSync({ realm ->
realm.where(OutgoingRoomKeyRequestEntity::class.java)
}, {
it.toOutgoingRoomKeyRequest()

View File

@ -108,5 +108,4 @@ sealed class EventSharedAction(@StringRes val titleRes: Int,
object UseKeyBackup :
EventSharedAction(R.string.e2e_use_keybackup, R.drawable.shield)
}

View File

@ -35,7 +35,7 @@ class KeyRequestEpoxyController @Inject constructor(
) : TypedEpoxyController<KeyRequestListViewState>() {
interface InteractionListener {
//fun didTap(data: UserAccountData)
// fun didTap(data: UserAccountData)
}
var interactionListener: InteractionListener? = null
@ -60,7 +60,6 @@ class KeyRequestEpoxyController @Inject constructor(
val requestList = async.invoke().groupBy { it.roomId }
requestList.forEach {
genericItemHeader {
id(it.key)
text("roomId: ${it.key}")
@ -83,7 +82,6 @@ class KeyRequestEpoxyController @Inject constructor(
)
}
}
}
}
}.exhaustive

View File

@ -23,7 +23,6 @@ import com.airbnb.mvrx.withState
import im.vector.riotx.R
import im.vector.riotx.core.extensions.cleanup
import im.vector.riotx.core.extensions.configureWith
import im.vector.riotx.core.platform.VectorBaseActivity
import im.vector.riotx.core.platform.VectorBaseFragment
import im.vector.riotx.core.resources.ColorProvider
import kotlinx.android.synthetic.main.fragment_generic_recycler.*

View File

@ -44,7 +44,6 @@ class KeyRequestsFragment @Inject constructor() : VectorBaseFragment() {
TabLayoutMediator(devToolKeyRequestTabs, devToolKeyRequestPager) { tab, _ ->
tab.text = "Outgoing"
}.attach()
}
private inner class KeyReqPagerAdapter(fa: FragmentActivity) : FragmentStateAdapter(fa) {