We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f404a28 commit 0af168aCopy full SHA for 0af168a
app/src/main/kotlin/net/primal/android/notes/feed/note/ui/attachment/NoteAttachments.kt
@@ -45,6 +45,14 @@ fun NoteAttachments(
45
attachments
46
.filterNot { it.isMediaAttachment() }
47
.take(n = if (!expanded) 2 else Int.MAX_VALUE)
48
+ .filter {
49
+ when (it.type) {
50
+ NoteAttachmentType.YouTube, NoteAttachmentType.Rumble -> {
51
+ it.title != null || it.thumbnailUrl != null
52
+ }
53
+ else -> true
54
55
56
.forEach { attachment ->
57
NoteLinkAttachment(
58
modifier = modifier,
0 commit comments