Receive support for editing messages

This commit is contained in:
Josh Perez 2023-03-27 19:48:57 -04:00 committed by GitHub
parent 2781e621ad
commit 36e21c0134
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 2053 additions and 405 deletions

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

@ -120,6 +120,14 @@ export type MessageReactionType = {
isSentByConversationId?: Record<string, boolean>;
};
export type EditHistoryType = {
attachments?: Array<AttachmentType>;
body?: string;
bodyRanges?: BodyRangesType;
preview?: Array<LinkPreviewType>;
timestamp: number;
};
export type MessageAttributesType = {
bodyAttachment?: AttachmentType;
bodyRanges?: BodyRangesType;
@ -141,6 +149,8 @@ export type MessageAttributesType = {
isErased?: boolean;
isTapToViewInvalid?: boolean;
isViewOnce?: boolean;
editHistory?: Array<EditHistoryType>;
editMessageTimestamp?: number;
key_changed?: string;
local?: boolean;
logger?: unknown;