mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
fixing crash when tapping verification item
- caused by the setArguments being called on the TimelineFragment not the bottomsheet we've just created
This commit is contained in:
parent
d1a77d2eca
commit
4154f036db
2 changed files with 6 additions and 7 deletions
1
changelog.d/5540.bugfix
Normal file
1
changelog.d/5540.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Fixes crash when tapping the timeline verification surround box instead of the buttons
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue