From 8ecaaa08cfd036ba3f53f54e60888baa9536ce8b Mon Sep 17 00:00:00 2001 From: ganfra Date: Thu, 23 Sep 2021 17:14:04 +0200 Subject: [PATCH] Fix MessageActionsBottomSheet not being shown on local echos #4068 --- changelog.d/4068.bugfix | 1 + .../vector/app/features/home/room/detail/RoomDetailFragment.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog.d/4068.bugfix diff --git a/changelog.d/4068.bugfix b/changelog.d/4068.bugfix new file mode 100644 index 0000000000..4f8a452456 --- /dev/null +++ b/changelog.d/4068.bugfix @@ -0,0 +1 @@ +MessageActionsBottomSheet not being shown on local echos \ No newline at end of file diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailFragment.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailFragment.kt index 765e69d669..cd1acf27e5 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailFragment.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailFragment.kt @@ -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