mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-09-27 03:55:01 +01:00
Update backup export to remove storySentTimestamp.
This commit is contained in:
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.
-1
@@ -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 {
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user