Modern profile sharing in 1:1 and GroupV1 groups

This commit is contained in:
Scott Nonnenberg 2020-10-16 11:31:57 -07:00
parent 60f2422e2a
commit 04b7a29229
22 changed files with 371 additions and 115 deletions

4
ts/model-types.d.ts vendored
View file

@ -84,7 +84,7 @@ export type MessageAttributesType = {
referencedMessageNotFound: boolean;
text: string;
} | null;
reactions: Array<{ fromId: string; emoji: unknown; timestamp: unknown }>;
reactions: Array<{ fromId: string; emoji: string; timestamp: number }>;
read_by: Array<string | null>;
requiredProtocolVersion: number;
sent: boolean;
@ -141,7 +141,7 @@ export type ConversationAttributesType = {
accessKey: string | null;
addedBy?: string;
capabilities: { uuid: string };
color?: ColorType;
color?: string;
discoveredUnregisteredAt: number;
draftAttachments: Array<unknown>;
draftTimestamp: number | null;