feat: Improved disappearing messages

This commit is contained in:
charles 2022-10-20 15:17:23 +11:00
parent db61d693c4
commit 7750de3e3a
2 changed files with 1032 additions and 99 deletions

View File

@ -43,6 +43,11 @@ message UnsendRequest {
} }
message Content { message Content {
enum ExpirationType {
DELETE_AFTER_SEND = 1;
DELETE_AFTER_READ = 2;
}
optional DataMessage dataMessage = 1; optional DataMessage dataMessage = 1;
optional CallMessage callMessage = 3; optional CallMessage callMessage = 3;
optional ReceiptMessage receiptMessage = 5; optional ReceiptMessage receiptMessage = 5;
@ -51,6 +56,14 @@ message Content {
optional DataExtractionNotification dataExtractionNotification = 8; optional DataExtractionNotification dataExtractionNotification = 8;
optional UnsendRequest unsendRequest = 9; optional UnsendRequest unsendRequest = 9;
optional MessageRequestResponse messageRequestResponse = 10; optional MessageRequestResponse messageRequestResponse = 10;
optional ExpirationType expirationType = 11;
optional uint32 expirationTimer = 12;
optional uint64 lastDisappearingMessageChangeTimestamp = 13;
}
message SyncedExpiry {
required string serverHash = 1;
required uint64 expirationTimestamp = 2;
} }
message KeyPair { message KeyPair {