Clean up MessageModel group_update

This commit is contained in:
Evan Hahn 2021-06-23 11:14:11 -05:00 committed by GitHub
parent 0a4eef29db
commit b990204bce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 28 deletions

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

@ -71,6 +71,13 @@ export type RetryOptions = Readonly<{
now: number;
}>;
export type GroupV1Update = {
avatarUpdated?: boolean;
joined?: Array<string>;
left?: string | 'You';
name?: string;
};
export type MessageAttributesType = {
bodyPending?: boolean;
bodyRanges?: BodyRangesType;
@ -86,12 +93,7 @@ export type MessageAttributesType = {
expirationStartTimestamp?: number | null;
expireTimer?: number;
groupMigration?: GroupMigrationType;
group_update?: {
avatarUpdated: boolean;
joined: Array<string>;
left: string | 'You';
name: string;
};
group_update?: GroupV1Update;
hasAttachments?: boolean;
hasFileAttachments?: boolean;
hasVisualMediaAttachments?: boolean;