Merge pull request #4069 from vector-im/feature/fga/fix_timeline_event_bottom_sheet

Fix MessageActionsBottomSheet not being shown on local echos
This commit is contained in:
Benoit Marty 2021-09-23 18:43:44 +02:00 committed by GitHub
commit 5a1781e1ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 { override fun onEventLongClicked(informationData: MessageInformationData, messageContent: Any?, view: View): Boolean {
view.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS) view.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS)
val roomId = roomDetailViewModel.timeline.getTimelineEventWithId(informationData.eventId)?.roomId ?: return false val roomId = roomDetailArgs.roomId
this.view?.hideKeyboard() this.view?.hideKeyboard()
MessageActionsBottomSheet MessageActionsBottomSheet