mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 09:17:44 +00:00
Add missing bind(_:) calls
This commit is contained in:
parent
dfd9bd89f9
commit
9397f02272
@ -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.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user