Add long click listener to file items

This commit is contained in:
Benoit Marty 2019-07-09 10:42:20 +02:00
parent b0c939866f
commit d7b2371854
1 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,10 @@ class MessageItemFactory @Inject constructor(
DebouncedClickListener(View.OnClickListener { _ ->
callback?.onFileMessageClicked(informationData.eventId, messageContent)
}))
.longClickListener { view ->
return@longClickListener callback?.onEventLongClicked(informationData, messageContent, view)
?: false
}
}
private fun buildNotHandledMessageItem(messageContent: MessageContent, highlight: Boolean): DefaultItem? {