Fix MessageActionsBottomSheet not being shown on local echos #4068

This commit is contained in:
ganfra 2021-09-23 17:14:04 +02:00
parent e4bc60d255
commit 8ecaaa08cf
2 changed files with 2 additions and 1 deletions

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

@ -0,0 +1 @@
MessageActionsBottomSheet not being shown on local echos

View File

@ -1722,7 +1722,7 @@ class RoomDetailFragment @Inject constructor(
override fun onEventLongClicked(informationData: MessageInformationData, messageContent: Any?, view: View): Boolean {
view.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS)
val roomId = roomDetailViewModel.timeline.getTimelineEventWithId(informationData.eventId)?.roomId ?: return false
val roomId = roomDetailArgs.roomId
this.view?.hideKeyboard()
MessageActionsBottomSheet