Backups: support direct story replies

This commit is contained in:
trevor-signal
2025-01-21 16:49:05 -05:00
committed by GitHub
parent 4b6ef3a1ed
commit 0d6cd429d0
9 changed files with 417 additions and 32 deletions

View File

@@ -173,6 +173,7 @@ message Contact {
optional bytes identityKey = 14;
IdentityState identityState = 15;
Name nickname = 16; // absent iff both `given` and `family` are empty
string note = 17;
}
message Group {
@@ -380,6 +381,7 @@ message ChatItem {
PaymentNotification paymentNotification = 16;
GiftBadge giftBadge = 17;
ViewOnceMessage viewOnceMessage = 18;
DirectStoryReplyMessage directStoryReplyMessage = 19; // group story reply messages are not backed up
}
}
@@ -448,6 +450,21 @@ message ContactMessage {
repeated Reaction reactions = 2;
}
message DirectStoryReplyMessage {
message TextReply {
Text text = 1;
FilePointer longText = 2;
}
oneof reply {
TextReply textReply = 1;
string emoji = 2;
}
repeated Reaction reactions = 3;
reserved /*storySentTimestamp*/ 4;
}
message PaymentNotification {
message TransactionDetails {
message MobileCoinTxoIdentification { // Used to map to payments on the ledger
@@ -1241,4 +1258,4 @@ message ChatFolder {
FolderType folderType = 6;
repeated uint64 includedRecipientIds = 7; // generated recipient id of groups, contacts, and/or note to self
repeated uint64 excludedRecipientIds = 8; // generated recipient id of groups, contacts, and/or note to self
}
}