Merge pull request #5558 from vector-im/feature/adm/crash-when-tapping-verification-item

Fixing crash when tapping timeline verification item
This commit is contained in:
Adam Brown 2022-03-17 10:25:52 +00:00 committed by GitHub
commit 36564d3657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

1
changelog.d/5540.bugfix Normal file
View File

@ -0,0 +1 @@
Fixes crash when tapping the timeline verification surround box instead of the buttons

View File

@ -1771,13 +1771,11 @@ class TimelineFragment @Inject constructor(
}
is RoomDetailAction.ResumeVerification -> {
val otherUserId = data.otherUserId ?: return
VerificationBottomSheet().apply {
setArguments(VerificationBottomSheet.VerificationArgs(
otherUserId = otherUserId,
verificationId = data.transactionId,
roomId = timelineArgs.roomId
))
}.show(parentFragmentManager, "REQ")
VerificationBottomSheet.withArgs(
roomId = timelineArgs.roomId,
otherUserId = otherUserId,
transactionId = data.transactionId,
).show(parentFragmentManager, "REQ")
}
}
}