Update backup export to remove storySentTimestamp.

This commit is contained in:
Greyson Parrelli
2025-01-17 14:06:24 -05:00
parent 69c4026f4d
commit 960bab4f94
13 changed files with 2 additions and 3 deletions

View File

@@ -866,7 +866,6 @@ private fun BackupMessageRecord.toRemoteDirectStoryReplyMessage(mediaArchiveEnab
val isReaction = MessageTypes.isStoryReaction(this.type)
return DirectStoryReplyMessage(
storySentTimestamp = this.parentStoryId.takeUnless { it == MessageTable.PARENT_STORY_MISSING_ID },
emoji = if (isReaction) {
this.body
} else {

View File

@@ -877,7 +877,7 @@ class ChatItemArchiveImporter(
}
private fun ContentValues.addDirectStoryReply(directStoryReply: DirectStoryReplyMessage) {
put(MessageTable.PARENT_STORY_ID, directStoryReply.storySentTimestamp?.takeUnless { it == 0L } ?: MessageTable.PARENT_STORY_MISSING_ID)
put(MessageTable.PARENT_STORY_ID, MessageTable.PARENT_STORY_MISSING_ID)
if (directStoryReply.emoji != null) {
put(MessageTable.BODY, directStoryReply.emoji)