mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-27 12:15:50 +01:00
Support pinned messages in backups.
This commit is contained in:
committed by
jeffrey-signal
parent
b99fec4274
commit
b65079ec20
@@ -460,6 +460,14 @@ message ChatItem {
|
||||
message DirectionlessMessageDetails {
|
||||
}
|
||||
|
||||
message PinDetails {
|
||||
uint64 pinnedAtTimestamp = 1;
|
||||
oneof pinExpiry {
|
||||
uint64 pinExpiresAtTimestamp = 2; // timestamp when the pin should expire
|
||||
bool pinNeverExpires = 3;
|
||||
}
|
||||
}
|
||||
|
||||
uint64 chatId = 1; // conversation id
|
||||
uint64 authorId = 2; // recipient id
|
||||
uint64 dateSent = 3;
|
||||
@@ -488,6 +496,8 @@ message ChatItem {
|
||||
DirectStoryReplyMessage directStoryReplyMessage = 19; // group story reply messages are not backed up
|
||||
Poll poll = 20;
|
||||
}
|
||||
|
||||
PinDetails pinDetails = 21; // only set if message is pinned
|
||||
}
|
||||
|
||||
message SendStatus {
|
||||
@@ -898,6 +908,7 @@ message ChatUpdateMessage {
|
||||
GroupCall groupCall = 8;
|
||||
LearnedProfileChatUpdate learnedProfileChange = 9;
|
||||
PollTerminateUpdate pollTerminate = 10;
|
||||
PinMessageUpdate pinMessage = 11;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1268,6 +1279,11 @@ message PollTerminateUpdate {
|
||||
string question = 2; // Between 1-100 characters
|
||||
}
|
||||
|
||||
message PinMessageUpdate {
|
||||
uint64 targetSentTimestamp = 1;
|
||||
uint64 authorId = 2; // recipient id
|
||||
}
|
||||
|
||||
message StickerPack {
|
||||
bytes packId = 1;
|
||||
bytes packKey = 2;
|
||||
|
||||
Reference in New Issue
Block a user