cleaning
This commit is contained in:
parent
3c4506cb58
commit
935b3d7f3f
|
@ -48,6 +48,5 @@ interface SasVerificationTransaction {
|
||||||
*/
|
*/
|
||||||
fun userHasVerifiedShortCode()
|
fun userHasVerifiedShortCode()
|
||||||
|
|
||||||
|
|
||||||
fun shortCodeDoNotMatch()
|
fun shortCodeDoNotMatch()
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,6 @@ internal class DefaultSasVerificationService @Inject constructor(
|
||||||
*/
|
*/
|
||||||
private val pendingRequests = HashMap<String, ArrayList<PendingVerificationRequest>>()
|
private val pendingRequests = HashMap<String, ArrayList<PendingVerificationRequest>>()
|
||||||
|
|
||||||
|
|
||||||
// Event received from the sync
|
// Event received from the sync
|
||||||
fun onToDeviceEvent(event: Event) {
|
fun onToDeviceEvent(event: Event) {
|
||||||
GlobalScope.launch(coroutineDispatchers.crypto) {
|
GlobalScope.launch(coroutineDispatchers.crypto) {
|
||||||
|
@ -184,7 +183,6 @@ internal class DefaultSasVerificationService @Inject constructor(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private fun dispatchRequestAdded(tx: PendingVerificationRequest) {
|
private fun dispatchRequestAdded(tx: PendingVerificationRequest) {
|
||||||
uiHandler.post {
|
uiHandler.post {
|
||||||
listeners.forEach {
|
listeners.forEach {
|
||||||
|
|
|
@ -59,6 +59,5 @@ internal interface SasTransport {
|
||||||
|
|
||||||
fun createMac(tid: String, mac: Map<String, String>, keys: String): VerificationInfoMac
|
fun createMac(tid: String, mac: Map<String, String>, keys: String): VerificationInfoMac
|
||||||
|
|
||||||
|
|
||||||
fun createReady(tid: String, fromDevice: String, methods: List<String>): VerificationInfoReady
|
fun createReady(tid: String, fromDevice: String, methods: List<String>): VerificationInfoReady
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ class VerificationBottomSheet : VectorBaseBottomSheetDialogFragment() {
|
||||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
|
||||||
super.onViewCreated(view, savedInstanceState)
|
super.onViewCreated(view, savedInstanceState)
|
||||||
|
|
||||||
viewModel.requestLiveData.observe(this, Observer {
|
viewModel.requestLiveData.observe(viewLifecycleOwner, Observer {
|
||||||
it.peekContent().let { va ->
|
it.peekContent().let { va ->
|
||||||
when (va) {
|
when (va) {
|
||||||
is Success -> {
|
is Success -> {
|
||||||
|
|
Loading…
Reference in New Issue