Store receipt fields as booleans instead of counts.

This commit is contained in:
Greyson Parrelli
2023-11-14 09:16:56 -08:00
parent 5e70c06075
commit e80b7cf0a2
24 changed files with 275 additions and 213 deletions

View File

@@ -114,7 +114,7 @@ object FakeMessageRecords {
dateSent: Long = 200,
dateReceived: Long = 400,
dateServer: Long = 300,
deliveryReceiptCount: Int = 0,
hasDeliveryReceipt: Boolean = false,
threadId: Long = 1,
body: String = "body",
slideDeck: SlideDeck = SlideDeck(),
@@ -126,7 +126,7 @@ object FakeMessageRecords {
expiresIn: Long = -1,
expireStarted: Long = -1,
viewOnce: Boolean = false,
readReceiptCount: Int = 0,
hasReadReceipt: Boolean = false,
quote: Quote? = null,
contacts: List<Contact> = emptyList(),
linkPreviews: List<LinkPreview> = emptyList(),
@@ -135,7 +135,7 @@ object FakeMessageRecords {
remoteDelete: Boolean = false,
mentionsSelf: Boolean = false,
notifiedTimestamp: Long = 350,
viewedReceiptCount: Int = 0,
viewed: Boolean = false,
receiptTimestamp: Long = 0,
messageRanges: BodyRangeList? = null,
storyType: StoryType = StoryType.NONE,
@@ -152,7 +152,7 @@ object FakeMessageRecords {
dateSent,
dateReceived,
dateServer,
deliveryReceiptCount,
hasDeliveryReceipt,
threadId,
body,
slideDeck,
@@ -163,7 +163,7 @@ object FakeMessageRecords {
expiresIn,
expireStarted,
viewOnce,
readReceiptCount,
hasReadReceipt,
quote,
contacts,
linkPreviews,
@@ -172,7 +172,7 @@ object FakeMessageRecords {
remoteDelete,
mentionsSelf,
notifiedTimestamp,
viewedReceiptCount,
viewed,
receiptTimestamp,
messageRanges,
storyType,