Handle incoming "viewed" sync messages

This commit is contained in:
Evan Hahn 2021-07-06 13:21:05 -05:00 committed by GitHub
parent 4cd3da8f5b
commit 45b599e87a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

6
ts/textsecure.d.ts vendored
View file

@ -1099,6 +1099,7 @@ export declare class SyncMessageClass {
messageRequestResponse?: SyncMessageClass.MessageRequestResponse;
fetchLatest?: SyncMessageClass.FetchLatest;
keys?: SyncMessageClass.Keys;
viewed?: Array<SyncMessageClass.Viewed>;
}
// Note: we need to use namespaces to express nested classes in Typescript
@ -1127,6 +1128,11 @@ export declare namespace SyncMessageClass {
senderUuid: string | null;
timestamp?: ProtoBigNumberType;
}
class Viewed {
sender: string | null;
senderUuid: string | null;
timestamp?: ProtoBigNumberType;
}
class Request {
type?: number;
}