Allow forwarding of contacts.

This commit is contained in:
Alex Hart
2023-04-05 13:16:06 -03:00
parent 9771b53c79
commit 921c903190
6 changed files with 57 additions and 24 deletions

View File

@@ -120,7 +120,8 @@ data class OutgoingMessage(
linkPreviews: List<LinkPreview> = emptyList(),
mentions: List<Mention> = emptyList(),
isSecure: Boolean = false,
bodyRanges: BodyRangeList? = null
bodyRanges: BodyRangeList? = null,
contacts: List<Contact> = emptyList()
) : this(
recipient = recipient,
body = buildMessage(slideDeck, body ?: ""),
@@ -133,7 +134,8 @@ data class OutgoingMessage(
linkPreviews = linkPreviews,
mentions = mentions,
isSecure = isSecure,
bodyRanges = bodyRanges
bodyRanges = bodyRanges,
sharedContacts = contacts
)
fun withExpiry(expiresIn: Long): OutgoingMessage {