Update backup export to remove storySentTimestamp.
This commit is contained in:
parent
69c4026f4d
commit
960bab4f94
13 changed files with 2 additions and 3 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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)
|
||||
|
|
|
@ -461,7 +461,7 @@ message DirectStoryReplyMessage {
|
|||
}
|
||||
|
||||
repeated Reaction reactions = 3;
|
||||
optional uint64 storySentTimestamp = 4;
|
||||
reserved /*storySentTimestamp*/ 4;
|
||||
}
|
||||
|
||||
message PaymentNotification {
|
||||
|
|
Loading…
Add table
Reference in a new issue