mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-02-14 23:18:54 +00:00
Use storage service for call links
This commit is contained in:
@@ -622,7 +622,7 @@ message SyncMessage {
|
||||
message CallLinkUpdate {
|
||||
enum Type {
|
||||
UPDATE = 0;
|
||||
DELETE = 1;
|
||||
reserved 1; // was DELETE, superseded by storage service
|
||||
}
|
||||
|
||||
optional bytes rootKey = 1;
|
||||
|
||||
@@ -47,6 +47,7 @@ message ManifestRecord {
|
||||
ACCOUNT = 4;
|
||||
STORY_DISTRIBUTION_LIST = 5;
|
||||
STICKER_PACK = 6;
|
||||
CALL_LINK = 7;
|
||||
}
|
||||
|
||||
optional bytes raw = 1;
|
||||
@@ -67,6 +68,7 @@ message StorageRecord {
|
||||
AccountRecord account = 4;
|
||||
StoryDistributionListRecord storyDistributionList = 5;
|
||||
StickerPackRecord stickerPack = 6;
|
||||
CallLinkRecord callLink = 7;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -241,3 +243,10 @@ message StickerPackRecord {
|
||||
// non-zero - `packKey` and `position` should
|
||||
// be unset
|
||||
}
|
||||
|
||||
message CallLinkRecord {
|
||||
optional bytes rootKey = 1; // 16 bytes
|
||||
optional bytes adminPasskey = 2; // Non-empty when the current user is an admin
|
||||
optional uint64 deletedAtTimestampMs = 3; // When present and non-zero, `adminPasskey`
|
||||
// should be cleared
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user