From 9397f0227288c9438b516bb90cadc26f0e7bdc05 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Wed, 2 Jun 2021 13:14:36 +1000 Subject: [PATCH] Add missing bind(_:) calls --- .../conversation/v2/messages/VisibleMessageContentView.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageContentView.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageContentView.kt index 73b96b13d5..17e2272044 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageContentView.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/messages/VisibleMessageContentView.kt @@ -54,15 +54,19 @@ class VisibleMessageContentView : LinearLayout { // Body if (message is MmsMessageRecord && message.linkPreviews.isNotEmpty()) { val linkPreviewView = LinkPreviewView(context) + linkPreviewView.bind(message) mainContainer.addView(linkPreviewView) } else if (message is MmsMessageRecord && message.quote != null) { val quoteView = QuoteView(context) + quoteView.bind(message) mainContainer.addView(quoteView) } else if (message is MmsMessageRecord && message.slideDeck.audioSlide != null) { val voiceMessageView = VoiceMessageView(context) + voiceMessageView.bind(message) mainContainer.addView(voiceMessageView) } else if (message is MmsMessageRecord && message.slideDeck.documentSlide != null) { val documentView = DocumentView(context) + documentView.bind(message) mainContainer.addView(documentView) } else if (message is MmsMessageRecord && message.slideDeck.asAttachments().isNotEmpty()) { throw IllegalStateException("Not yet implemented; we may want to use Signal's album view here.")