mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Handle incoming "viewed" sync messages
This commit is contained in:
@@ -366,6 +366,12 @@ message SyncMessage {
|
|||||||
optional uint64 timestamp = 2;
|
optional uint64 timestamp = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message Viewed {
|
||||||
|
optional string senderE164 = 1;
|
||||||
|
optional string senderUuid = 3;
|
||||||
|
optional uint64 timestamp = 2;
|
||||||
|
}
|
||||||
|
|
||||||
message Configuration {
|
message Configuration {
|
||||||
optional bool readReceipts = 1;
|
optional bool readReceipts = 1;
|
||||||
optional bool unidentifiedDeliveryIndicators = 2;
|
optional bool unidentifiedDeliveryIndicators = 2;
|
||||||
@@ -431,6 +437,8 @@ message SyncMessage {
|
|||||||
optional FetchLatest fetchLatest = 12;
|
optional FetchLatest fetchLatest = 12;
|
||||||
optional Keys keys = 13;
|
optional Keys keys = 13;
|
||||||
optional MessageRequestResponse messageRequestResponse = 14;
|
optional MessageRequestResponse messageRequestResponse = 14;
|
||||||
|
reserved 15; // not yet added
|
||||||
|
repeated Viewed viewed = 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
message AttachmentPointer {
|
message AttachmentPointer {
|
||||||
|
|||||||
6
ts/textsecure.d.ts
vendored
6
ts/textsecure.d.ts
vendored
@@ -1099,6 +1099,7 @@ export declare class SyncMessageClass {
|
|||||||
messageRequestResponse?: SyncMessageClass.MessageRequestResponse;
|
messageRequestResponse?: SyncMessageClass.MessageRequestResponse;
|
||||||
fetchLatest?: SyncMessageClass.FetchLatest;
|
fetchLatest?: SyncMessageClass.FetchLatest;
|
||||||
keys?: SyncMessageClass.Keys;
|
keys?: SyncMessageClass.Keys;
|
||||||
|
viewed?: Array<SyncMessageClass.Viewed>;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note: we need to use namespaces to express nested classes in Typescript
|
// Note: we need to use namespaces to express nested classes in Typescript
|
||||||
@@ -1127,6 +1128,11 @@ export declare namespace SyncMessageClass {
|
|||||||
senderUuid: string | null;
|
senderUuid: string | null;
|
||||||
timestamp?: ProtoBigNumberType;
|
timestamp?: ProtoBigNumberType;
|
||||||
}
|
}
|
||||||
|
class Viewed {
|
||||||
|
sender: string | null;
|
||||||
|
senderUuid: string | null;
|
||||||
|
timestamp?: ProtoBigNumberType;
|
||||||
|
}
|
||||||
class Request {
|
class Request {
|
||||||
type?: number;
|
type?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user