mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-28 13:48:12 +00:00
Update backup export to remove storySentTimestamp.
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user