Store all story reactions as messages

This commit is contained in:
Fedor Indutny 2022-11-02 16:48:38 -07:00 committed by GitHub
parent f13611712c
commit 54aa0d39b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 237 additions and 223 deletions

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

@ -146,7 +146,7 @@ export type MessageAttributesType = {
messageTimer?: unknown;
profileChange?: ProfileNameChangeType;
quote?: QuotedMessageType;
reactions?: Array<MessageReactionType>;
reactions?: ReadonlyArray<MessageReactionType>;
requiredProtocolVersion?: number;
retryOptions?: RetryOptions;
sourceDevice?: number;
@ -184,7 +184,11 @@ export type MessageAttributesType = {
unidentifiedDeliveries?: Array<string>;
contact?: Array<EmbeddedContactType>;
conversationId: string;
storyReactionEmoji?: string;
storyReaction?: {
emoji: string;
targetAuthorUuid: string;
targetTimestamp: number;
};
giftBadge?: {
expiration: number;
level: number;