mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-23 22:39:02 +03:00
Fix verification bottomsheet not updating
This commit is contained in:
parent
b704b64255
commit
b45b90dcdf
2 changed files with 6 additions and 2 deletions
matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/verification
vector/src/main/java/im/vector/app/features/crypto/verification/user
|
@ -173,6 +173,7 @@ internal class RustVerificationService @Inject constructor(
|
||||||
|
|
||||||
Timber.d("## Verification: start for $sender")
|
Timber.d("## Verification: start for $sender")
|
||||||
// update the request as the start updates it's state
|
// update the request as the start updates it's state
|
||||||
|
verificationListenersHolder.dispatchRequestUpdated(request)
|
||||||
verificationListenersHolder.dispatchTxUpdated(transaction)
|
verificationListenersHolder.dispatchTxUpdated(transaction)
|
||||||
} else {
|
} else {
|
||||||
// This didn't originate from a request, so tell our listeners that
|
// This didn't originate from a request, so tell our listeners that
|
||||||
|
@ -322,6 +323,9 @@ internal class RustVerificationService @Inject constructor(
|
||||||
|
|
||||||
if (sas != null) {
|
if (sas != null) {
|
||||||
verificationListenersHolder.dispatchTxAdded(sas)
|
verificationListenersHolder.dispatchTxAdded(sas)
|
||||||
|
// we need to update the request as the state mapping depends on the
|
||||||
|
// sas or qr beeing started
|
||||||
|
verificationListenersHolder.dispatchRequestUpdated(request)
|
||||||
sas.transactionId
|
sas.transactionId
|
||||||
} else {
|
} else {
|
||||||
Timber.w("Failed to start verification with method $method")
|
Timber.w("Failed to start verification with method $method")
|
||||||
|
|
|
@ -166,8 +166,8 @@ class UserVerificationViewModel @AssistedInject constructor(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
it.getTransaction()?.let {
|
it.getTransaction()?.let { transaction ->
|
||||||
val dClass = it.toDataClass()
|
val dClass = transaction.toDataClass()
|
||||||
if (dClass != null) {
|
if (dClass != null) {
|
||||||
setState {
|
setState {
|
||||||
copy(
|
copy(
|
||||||
|
|
Loading…
Add table
Reference in a new issue