This commit is contained in:
Valere 2019-12-30 20:18:08 +01:00
parent 3c4506cb58
commit 935b3d7f3f
5 changed files with 4 additions and 8 deletions

View File

@ -48,6 +48,5 @@ interface SasVerificationTransaction {
*/ */
fun userHasVerifiedShortCode() fun userHasVerifiedShortCode()
fun shortCodeDoNotMatch() fun shortCodeDoNotMatch()
} }

View File

@ -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 {

View File

@ -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
} }

View File

@ -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 -> {