Add in-chat payment messages.

This commit is contained in:
Cody Henthorne
2022-11-10 14:45:45 -05:00
committed by Greyson Parrelli
parent 28193c2f61
commit 1dc29fda12
43 changed files with 708 additions and 98 deletions

View File

@@ -16,6 +16,7 @@ import org.thoughtcrime.securesms.database.model.databaseprotos.BodyRangeList
import org.thoughtcrime.securesms.database.model.databaseprotos.GiftBadge
import org.thoughtcrime.securesms.linkpreview.LinkPreview
import org.thoughtcrime.securesms.mms.SlideDeck
import org.thoughtcrime.securesms.payments.Payment
import org.thoughtcrime.securesms.recipients.Recipient
import org.thoughtcrime.securesms.stickers.StickerLocator
import org.thoughtcrime.securesms.util.MediaUtil
@@ -135,7 +136,8 @@ object FakeMessageRecords {
messageRanges: BodyRangeList? = null,
storyType: StoryType = StoryType.NONE,
parentStoryId: ParentStoryId? = null,
giftBadge: GiftBadge? = null
giftBadge: GiftBadge? = null,
payment: Payment? = null
): MediaMmsMessageRecord {
return MediaMmsMessageRecord(
id,
@@ -171,7 +173,8 @@ object FakeMessageRecords {
messageRanges,
storyType,
parentStoryId,
giftBadge
giftBadge,
payment
)
}
}