Support for joining New Groups via invite links

This commit is contained in:
Scott Nonnenberg 2021-01-29 14:16:48 -08:00 committed by GitHub
parent c0510b08a5
commit a48b3e381e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 2532 additions and 381 deletions

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

@ -211,6 +211,9 @@ export type ConversationAttributesType = {
// Group-only
groupId?: string;
// A shorthand, representing whether the user is part of the group. Not strictly for
// when the user manually left the group. But historically, that was the only way
// to leave a group.
left: boolean;
groupVersion?: number;
@ -233,7 +236,7 @@ export type ConversationAttributesType = {
avatar?: {
url: string;
path: string;
hash: string;
hash?: string;
} | null;
expireTimer?: number;
membersV2?: Array<GroupV2MemberType>;
@ -242,6 +245,10 @@ export type ConversationAttributesType = {
groupInviteLinkPassword?: string;
previousGroupV1Id?: string;
previousGroupV1Members?: Array<string>;
// Used only when user is waiting for approval to join via link
isTemporary?: boolean;
temporaryMemberCount?: number;
};
export type GroupV2MemberType = {