Fix / handling of back

This commit is contained in:
Valere 2020-03-24 15:51:09 +01:00
parent 63d3bf93f2
commit 37ac45c90a
2 changed files with 9 additions and 4 deletions

View File

@ -133,7 +133,6 @@ internal class IncomingGossipingRequestManager @Inject constructor(
* It must be called on CryptoThread * It must be called on CryptoThread
*/ */
fun processReceivedGossipingRequests() { fun processReceivedGossipingRequests() {
Timber.v("## GOSSIP processReceivedGossipingRequests()")
val roomKeyRequestsToProcess = receivedGossipingRequests.toList() val roomKeyRequestsToProcess = receivedGossipingRequests.toList()
receivedGossipingRequests.clear() receivedGossipingRequests.clear()

View File

@ -142,9 +142,15 @@ class VerificationBottomSheetViewModel @AssistedInject constructor(
args: VerificationBottomSheet.VerificationArgs): VerificationBottomSheetViewModel args: VerificationBottomSheet.VerificationArgs): VerificationBottomSheetViewModel
} }
fun queryCancel() { fun queryCancel() = withState {
setState { if (it.userThinkItsNotHim) {
copy(userWantsToCancel = true) setState {
copy(userThinkItsNotHim = false)
}
} else {
setState {
copy(userWantsToCancel = true)
}
} }
} }