Skip to content
Snippets Groups Projects
Commit 56ed8dad authored by Emma Falkiewitz's avatar Emma Falkiewitz
Browse files

chatView: hide link preview for deleted message

GitLab: #1382
Change-Id: Ib78bfad9755b954c3ba1a4b90fa761573d06e38e
parent e52f1b4c
No related branches found
No related tags found
No related merge requests found
......@@ -1084,12 +1084,15 @@ class ConversationAdapter(
val msgTxt = convViewHolder.mMsgTxt ?: return@subscribe
val longPressView = convViewHolder.mMsgTxt!!
longPressView.background?.setTintList(null)
val answerLayout = convViewHolder.mAnswerLayout
val isTimeShown = hasPermanentTimeString(textMessage, position)
val msgSequenceType = getMsgSequencing(position, isTimeShown)
// Manage deleted message.
if (isDeleted) {
msgTxt.text = context.getString(R.string.conversation_message_deleted)
// Hide the link preview
answerLayout?.visibility = View.GONE
msgTxt.background.alpha = 255
if (convColor != 0 && !textMessage.isIncoming) {
msgTxt.background.setTint(convColor)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment