1
0
Fork 0
mirror of https://github.com/element-hq/element-android synced 2024-12-18 23:34:12 +03:00

Merge pull request 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
changelog.d
vector/src/main/java/im/vector/app/features/home/room/detail

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