fix to open share urls from preview with files app

The wrong context was passed, so the overwritten startActivity in ChatActivity was not called.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2024-05-21 12:11:59 +02:00
parent 9c1f68abb4
commit c7a7206fd0
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B
2 changed files with 2 additions and 2 deletions

View file

@ -98,7 +98,7 @@ class IncomingLinkPreviewMessageViewHolder(incomingView: View, payload: Any) :
message,
ncApi,
binding.referenceInclude,
context
itemView.context
)
binding.referenceInclude.referenceWrapper.setOnLongClickListener { l: View? ->
commonMessageInterface.onOpenMessageActionsDialog(message)

View file

@ -109,7 +109,7 @@ class OutcomingLinkPreviewMessageViewHolder(outcomingView: View, payload: Any) :
message,
ncApi,
binding.referenceInclude,
context
itemView.context
)
binding.referenceInclude.referenceWrapper.setOnLongClickListener { l: View? ->
commonMessageInterface.onOpenMessageActionsDialog(message)