mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Fix / handling of back
This commit is contained in:
parent
63d3bf93f2
commit
37ac45c90a
2 changed files with 9 additions and 4 deletions
|
@ -133,7 +133,6 @@ internal class IncomingGossipingRequestManager @Inject constructor(
|
|||
* It must be called on CryptoThread
|
||||
*/
|
||||
fun processReceivedGossipingRequests() {
|
||||
Timber.v("## GOSSIP processReceivedGossipingRequests()")
|
||||
|
||||
val roomKeyRequestsToProcess = receivedGossipingRequests.toList()
|
||||
receivedGossipingRequests.clear()
|
||||
|
|
|
@ -142,9 +142,15 @@ class VerificationBottomSheetViewModel @AssistedInject constructor(
|
|||
args: VerificationBottomSheet.VerificationArgs): VerificationBottomSheetViewModel
|
||||
}
|
||||
|
||||
fun queryCancel() {
|
||||
setState {
|
||||
copy(userWantsToCancel = true)
|
||||
fun queryCancel() = withState {
|
||||
if (it.userThinkItsNotHim) {
|
||||
setState {
|
||||
copy(userThinkItsNotHim = false)
|
||||
}
|
||||
} else {
|
||||
setState {
|
||||
copy(userWantsToCancel = true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue