Message backup support for link previews.

This commit is contained in:
Clark
2024-06-25 12:32:19 -04:00
committed by Cody Henthorne
parent 02629020df
commit 84515482a6
4 changed files with 85 additions and 7 deletions

View File

@@ -3373,7 +3373,7 @@ open class MessageTable(context: Context?, databaseHelper: SignalDatabase) : Dat
return sharedContactJson.toString()
}
private fun getSerializedLinkPreviews(insertedAttachmentIds: Map<Attachment, AttachmentId>, previews: List<LinkPreview>): String? {
fun getSerializedLinkPreviews(insertedAttachmentIds: Map<Attachment, AttachmentId>, previews: List<LinkPreview>): String? {
if (previews.isEmpty()) {
return null
}